Browse Source

Bug fix: SSH hostkey/TLS certificate verification prompt in scripting in interactive mode was showing zero timeout

Source commit: 919b7e56c16175b193d4b305f2d6b3c7315e467c
Martin Prikryl 8 years ago
parent
commit
aaf4571949
1 changed files with 5 additions and 2 deletions
  1. 5 2
      source/windows/ConsoleRunner.cpp

+ 5 - 2
source/windows/ConsoleRunner.cpp

@@ -1354,8 +1354,11 @@ void __fastcall TConsoleRunner::ScriptTerminalQueryUser(TObject * /*Sender*/,
     {
       DebugAssert(Timeout == 0);
       Timeout = InputTimeout();
-      // See a duplicate AbortAnswer call below
-      TimeoutA = AbortAnswer(Answers & ~NoBatchA);
+      if (Timeout != 0)
+      {
+        // See a duplicate AbortAnswer call below
+        TimeoutA = AbortAnswer(Answers & ~NoBatchA);
+      }
     }
   }