Skip to content
Permalink
Browse files
SSH tunnel: process error pipe contents only if std pipe is empty. See
  • Loading branch information
ansgarbecker committed Oct 27, 2022
1 parent 1756d46 commit 9b68360b54a816533ccfb9e4e8239efc7a3f3bdb
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1185,9 +1185,9 @@ procedure TSecureShellCmd.Connect;
MessageDialog(DialogTitle, OutText, mtInformation, [mbOK]);
end;
end;
end;
end

if ErrorText <> '' then begin
else if ErrorText <> '' then begin
rx.Expression := '([^\.]+\?)(\s*\(y\/n\s*(,[^\)]+)?\)\s*)$';
if rx.Exec(ErrorText) then begin
// Prompt user with question

0 comments on commit 9b68360

Please sign in to comment.