Browse Source

Bug 1541: Failure when using parallel background transfers

https://winscp.net/tracker/1541

Source commit: 28cd46978aad584543cf719efddd8aa6d049ba6c
Martin Prikryl 8 years ago
parent
commit
5a1946e6c8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/core/Terminal.cpp

+ 1 - 0
source/core/Terminal.cpp

@@ -912,6 +912,7 @@ bool TParallelOperation::CheckEnd(TCollectedFileList * Files)
 //---------------------------------------------------------------------------
 int TParallelOperation::GetNext(TTerminal * Terminal, UnicodeString & FileName, TObject *& Object, UnicodeString & TargetDir, bool & Dir, bool & Recursed)
 {
+  TGuard Guard(FSection.get());
   int Result = 1;
   TCollectedFileList * Files;
   do