瀏覽代碼

Do not try to merge or validate partial parallel downloads when the transfer fails or was canceled

Source commit: 72f354c3b1d79237f43031accd9418e2716381be
Martin Prikryl 2 年之前
父節點
當前提交
8743ba374e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/core/Terminal.cpp

+ 1 - 1
source/core/Terminal.cpp

@@ -862,7 +862,7 @@ void TParallelOperation::Done(
 
       try
       {
-        if (DebugAlwaysTrue(FSide == osRemote))
+        if (Success && DebugAlwaysTrue(FSide == osRemote))
         {
           TParallelFileOffsets::const_iterator I = std::find(FParallelFileOffsets.begin(), FParallelFileOffsets.end(), CopyParam->PartOffset);
           if (DebugAlwaysTrue(I != FParallelFileOffsets.end()))