Explorar o código

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

Source commit: 72f354c3b1d79237f43031accd9418e2716381be
Martin Prikryl %!s(int64=2) %!d(string=hai) anos
pai
achega
8743ba374e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()))