mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[209043] Finish ShellOutputReader when connect fails due to an error
This commit is contained in:
parent
c9a95167d8
commit
431a88f73b
2 changed files with 18 additions and 2 deletions
|
@ -117,12 +117,20 @@ public class SshHostShell extends AbstractHostShell implements IHostShell {
|
|||
writeToShell(commandToRun);
|
||||
}
|
||||
} catch(Exception e) {
|
||||
//TODO Forward exception to RSE properly
|
||||
//TODO [209043] Forward exception to RSE properly
|
||||
e.printStackTrace();
|
||||
if (fShellWriter!=null) {
|
||||
fShellWriter.stopThread();
|
||||
fShellWriter = null;
|
||||
}
|
||||
if (fStderrHandler!=null) {
|
||||
fStderrHandler.interrupt();
|
||||
fStderrHandler = null;
|
||||
}
|
||||
if (fStdoutHandler!=null) {
|
||||
fStdoutHandler.interrupt();
|
||||
fStdoutHandler = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,12 +81,20 @@ public class TelnetHostShell extends AbstractHostShell implements IHostShell {
|
|||
writeToShell(commandToRun);
|
||||
}
|
||||
} catch(Exception e) {
|
||||
//TODO Forward exception to RSE properly
|
||||
//TODO [209043] Forward exception to RSE properly
|
||||
e.printStackTrace();
|
||||
if (fShellWriter!=null) {
|
||||
fShellWriter.stopThread();
|
||||
fShellWriter = null;
|
||||
}
|
||||
if (fStderrHandler!=null) {
|
||||
fStderrHandler.interrupt();
|
||||
fStderrHandler = null;
|
||||
}
|
||||
if (fStdoutHandler!=null) {
|
||||
fStdoutHandler.interrupt();
|
||||
fStdoutHandler = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue