瀏覽代碼

Not using resumable download when encrypting files (part of Bug 1653)

Source commit: 30849c99a4b311adb8d0889373efb7156eae3da9
Martin Prikryl 7 年之前
父節點
當前提交
9a7d3e2999
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      source/core/SftpFileSystem.cpp

+ 2 - 1
source/core/SftpFileSystem.cpp

@@ -5213,7 +5213,8 @@ void __fastcall TSFTPFileSystem::Sink(
   bool ResumeAllowed =
     FLAGCLEAR(Params, cpTemporary) &&
     !OperationProgress->AsciiTransfer &&
-    CopyParam->AllowResume(OperationProgress->TransferSize);
+    CopyParam->AllowResume(OperationProgress->TransferSize) &&
+    !FTerminal->IsEncryptingFiles();
 
   HANDLE LocalHandle = NULL;
   TStream * FileStream = NULL;