aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 12:21:12 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 12:21:12 +0300
commitf95997c235bab4106f4bdfa33b4b8adb9921bb48 (patch)
tree19439fad9068c4c9759099e9a1f7259a2a32d307 /Software/Visual_Studio/PPC/Tango.PPC.Common/Connection
parent46f5f70e6055234bce3e9a105ab1ba86248b1713 (diff)
downloadTango-f95997c235bab4106f4bdfa33b4b8adb9921bb48.tar.gz
Tango-f95997c235bab4106f4bdfa33b4b8adb9921bb48.zip
Added guidance to event types.
Implemented general event view on PPC. Improved job resume tracking. Improved job resume on PPC. Added corruption emulation to machine emulator.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Connection')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
index 3ffb6f634..61ddfdb2b 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
@@ -119,7 +119,15 @@ namespace Tango.PPC.Common.Connection
MachineOperator.Adapter = response.Adapter;
MachineOperator.JobHandlingMode = JobHandlerModes.SettingUp;
LogManager.Log("Connecting machine operator...", LogCategory.Debug);
- await MachineOperator.Connect();
+ try
+ {
+ await MachineOperator.Connect();
+ }
+ catch (Exception)
+ {
+ await response.Adapter.Disconnect();
+ throw;
+ }
await Task.Delay(1000);