diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-30 09:09:16 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-30 09:09:16 +0300 |
| commit | b3251faca81119a951c176291cec428646500b17 (patch) | |
| tree | af32f341535d6ec99fc3a7e55cd2e116ac13992d /Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication | |
| parent | d858956962045f35cf895008b57a507ba39903a9 (diff) | |
| download | Tango-b3251faca81119a951c176291cec428646500b17.tar.gz Tango-b3251faca81119a951c176291cec428646500b17.zip | |
General bug fixes.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs index ef2b8aeee..7aeb6760e 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs @@ -182,7 +182,7 @@ namespace Tango.PPC.UI.PPCApplication //Start watchdog _watchdogServer = new WatchDogServer(Application.Current.Dispatcher); #if !DEBUG - + if (settings.EnableWatchDog) { _watchdogServer.Start(); @@ -425,6 +425,15 @@ namespace Tango.PPC.UI.PPCApplication } catch { } + try + { + if (_machineProvider.MachineOperator.State == Transport.TransportComponentState.Connected) + { + _machineProvider.MachineOperator.Adapter.Disconnect().Wait(); + } + } + catch { } + Process.Start(Application.ResourceAssembly.Location); Environment.Exit(0); } |
