1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

[205674][ssh] Terminal remains "connecting" when authentication is cancelled

This commit is contained in:
Martin Oberhuber 2008-07-08 17:31:41 +00:00
parent 25b209e441
commit 69a5123866

View file

@ -16,6 +16,7 @@
* Johnson Ma (Wind River) - [218880] Add UI setting for ssh keepalives
* Martin Oberhuber (Wind River) - [225792] Rename SshConnector.getTelnetSettings() to getSshSettings()
* Martin Oberhuber (Wind River) - [168197] Replace JFace MessagDialog by SWT MessageBox
* Martin Oberhuber (Wind River) - [205674][ssh] Terminal remains "connecting" when authentication is cancelled
*******************************************************************************/
package org.eclipse.tm.internal.terminal.ssh;
@ -132,12 +133,7 @@ class SshConnection extends Thread {
}
// when reading is done, we set the state to closed
fControl.setState(TerminalState.CLOSED);
} catch (JSchException e) {
if(e.toString().indexOf("Auth cancel")<0) { //$NON-NLS-1$
//no error if user pressed cancel
connectFailed(e.getMessage(),e.getMessage());
}
} catch (IOException e) {
} catch (Exception e) {
connectFailed(e.getMessage(),e.getMessage());
} finally {