From 26a23a974a68e4fdebee2632f385f6afbd233bcc Mon Sep 17 00:00:00 2001 From: Roy Date: Wed, 20 Jul 2022 16:44:36 +0300 Subject: Added last second check for job cancel before sending job request. --- .../Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs') diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 049d78d9c..c087bd3c1 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -3199,6 +3199,13 @@ namespace Tango.Integration.Operation _jobHeatingStartDate = DateTime.UtcNow; + if (handler.IsCanceled) + { + UseKeepAlive = oldKeepAlive; + UpdateStatus(MachineStatuses.ReadyToDye); + return; + } + SendContinuousRequest(request, new TransportContinuousRequestConfig() { Timeout = TimeSpan.FromSeconds(10), ContinuousTimeout = TimeSpan.FromSeconds(10), ShouldLog = true }).Subscribe((response) => { if (!completed) -- cgit v1.3.1