Skip to content
Snippets Groups Projects
Commit 123f5ea5 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Set _transferState immediately to prevent race conditions

parent 22c41612
No related branches found
No related tags found
No related merge requests found
...@@ -116,9 +116,9 @@ namespace ATxService ...@@ -116,9 +116,9 @@ namespace ATxService
if (_transferState != TxState.Active) if (_transferState != TxState.Active)
return; return;
_transferState = TxState.Paused;
Log.Info("Pausing the active transfer..."); Log.Info("Pausing the active transfer...");
_roboCommand.Pause(); _roboCommand.Pause();
_transferState = TxState.Paused;
Log.Debug("Transfer paused"); Log.Debug("Transfer paused");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment