瀏覽代碼

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

(cherry picked from commit d81f3c4fcabb074c8b42fff36b966ddfd2a96f2b)

Source commit: bcc19a3c1d050a42e0bbb9ab4bc5ab80cf2b0625
Martin Prikryl 4 年之前
父節點
當前提交
179a743c5e
共有 1 個文件被更改,包括 4 次插入1 次删除
  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