소스 검색

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()))