mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 13:35:22 +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);
|
writeToShell(commandToRun);
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
//TODO Forward exception to RSE properly
|
//TODO [209043] Forward exception to RSE properly
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if (fShellWriter!=null) {
|
if (fShellWriter!=null) {
|
||||||
fShellWriter.stopThread();
|
fShellWriter.stopThread();
|
||||||
fShellWriter = null;
|
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);
|
writeToShell(commandToRun);
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
//TODO Forward exception to RSE properly
|
//TODO [209043] Forward exception to RSE properly
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if (fShellWriter!=null) {
|
if (fShellWriter!=null) {
|
||||||
fShellWriter.stopThread();
|
fShellWriter.stopThread();
|
||||||
fShellWriter = null;
|
fShellWriter = null;
|
||||||
}
|
}
|
||||||
|
if (fStderrHandler!=null) {
|
||||||
|
fStderrHandler.interrupt();
|
||||||
|
fStderrHandler = null;
|
||||||
|
}
|
||||||
|
if (fStdoutHandler!=null) {
|
||||||
|
fStdoutHandler.interrupt();
|
||||||
|
fStdoutHandler = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue