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

Fix behaviour of wait-cycles between transfers.

Refers to #9
parent aaad6192
Branches
Tags
No related merge requests found
...@@ -584,6 +584,9 @@ namespace ATxService ...@@ -584,6 +584,9 @@ namespace ATxService
// check the queueing location and dispatch new transfers: // check the queueing location and dispatch new transfers:
ProcessQueuedDirectories(); ProcessQueuedDirectories();
// decrease the new-transfer-wait-counter:
_waitCyclesBeforeNextTx--;
} }
/// <summary> /// <summary>
...@@ -618,7 +621,6 @@ namespace ATxService ...@@ -618,7 +621,6 @@ namespace ATxService
if (_waitCyclesBeforeNextTx > 0) { if (_waitCyclesBeforeNextTx > 0) {
Log.Debug("Waiting {0} more cycles before starting the next transfer...", Log.Debug("Waiting {0} more cycles before starting the next transfer...",
_waitCyclesBeforeNextTx); _waitCyclesBeforeNextTx);
_waitCyclesBeforeNextTx--;
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment