Skip to content

Commit

Permalink
Merge pull request #772 from anonymous4argus/main
Browse files Browse the repository at this point in the history
Fix reconnect timeout - accept SSH password after network connection reset  #fixed
  • Loading branch information
Kaspik committed Jan 13, 2021
2 parents 8f91391 + 2289b42 commit cb7f902
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Other/SSHTunnel/SPSSHTunnel.m
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,7 @@ - (void)workerGetPasswordForQuery:(NSString *)theQuery

[sshPasswordDialog setFrame:windowFrameRect display:NO];
[parentWindow beginSheet:sshPasswordDialog completionHandler:nil];
[[NSApplication sharedApplication] runModalForWindow: sshPasswordDialog];
}

/*
Expand All @@ -858,6 +859,7 @@ - (IBAction)closeSSHPasswordSheet:(id)sender

[NSApp endSheet:sshPasswordDialog];
[sshPasswordDialog orderOut:nil];
[[NSApplication sharedApplication] abortModal];

if (requestedResponse) {
NSString *thePassword = [NSString stringWithString:[sshPasswordField stringValue]];
Expand Down

0 comments on commit cb7f902

Please sign in to comment.