1
0
Fork 0
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:
Martin Oberhuber 2007-11-07 15:43:55 +00:00
parent c9a95167d8
commit 431a88f73b
2 changed files with 18 additions and 2 deletions

View file

@ -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;
}
}
}

View file

@ -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;
}
}
}