浏览代码

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 年之前
父节点
当前提交
d81f3c4fca
共有 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