From 006cd61d4a4d0a2db3c95ade6300869e0198638b Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Fri, 2 Mar 2018 15:09:40 +0100 Subject: [PATCH] Fix behaviour of wait-cycles between transfers. Refers to #9 --- ATxService/AutoTx.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index 231035d..97c1925 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -584,6 +584,9 @@ namespace ATxService // check the queueing location and dispatch new transfers: ProcessQueuedDirectories(); + + // decrease the new-transfer-wait-counter: + _waitCyclesBeforeNextTx--; } /// <summary> @@ -618,7 +621,6 @@ namespace ATxService if (_waitCyclesBeforeNextTx > 0) { Log.Debug("Waiting {0} more cycles before starting the next transfer...", _waitCyclesBeforeNextTx); - _waitCyclesBeforeNextTx--; return; } -- GitLab