Bläddra i källkod

Prevent winscp.com and .NET assembly timing out waiting for winscp.exe when the system is temporarily busy

Source commit: 7c66fd683f64a4918978417b408c087c308143df
Martin Prikryl 9 år sedan
förälder
incheckning
49c9ea3c8a
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      source/windows/ConsoleRunner.cpp

+ 1 - 2
source/windows/ConsoleRunner.cpp

@@ -570,7 +570,6 @@ private:
   bool FPipeOutput;
   bool FNoInteractiveInput;
   bool FWantsProgress;
-  static const int PrintTimeout = 30000;
   unsigned int FMaxSend;
 
   inline TConsoleCommStruct * __fastcall GetCommStruct();
@@ -723,7 +722,7 @@ void __fastcall TExternalConsole::Print(UnicodeString Str, bool FromBeginning)
       FreeCommStruct(CommStruct);
     }
 
-    SendEvent(PrintTimeout);
+    SendEvent(INFINITE);
   }
   while (!Str.IsEmpty());
 }