浏览代码

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

Source commit: 7c66fd683f64a4918978417b408c087c308143df
Martin Prikryl 9 年之前
父节点
当前提交
49c9ea3c8a
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      source/windows/ConsoleRunner.cpp

+ 1 - 2
source/windows/ConsoleRunner.cpp

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