Browse Source

Bug fix: Adding new background transfer while queue processing is disabled and some parallelized transfer was already started results in "waiting" items being endlessly added to the queue list

Source commit: 84de7fc3138ada96c7ee788cef7a7e273508ba45
Martin Prikryl 4 years ago
parent
commit
d81f3c4fca
1 changed files with 4 additions and 1 deletions
  1. 4 1
      source/core/Queue.cpp

+ 4 - 1
source/core/Queue.cpp

@@ -1186,7 +1186,10 @@ bool __fastcall TTerminalQueue::ContinueParallelOperation()
 {
   TGuard Guard(FItemsSection);
 
-  return (FItems->Count <= FItemsInProcess);
+  return
+    (FItems->Count <= FItemsInProcess) ||
+    // When queue auto processing is not enabled, keep using all connections for the transfers that were manually started
+    !FEnabled;
 }
 //---------------------------------------------------------------------------
 // TBackgroundItem