mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
readLine() does not throw exception at the end of the stream.
This commit is contained in:
parent
1a8b6c2253
commit
d5fbd8f312
1 changed files with 7 additions and 6 deletions
|
@ -65,16 +65,17 @@ public class RxThread extends Thread {
|
|||
BufferedReader reader =
|
||||
new BufferedReader(new InputStreamReader(session.getChannelInputStream()));
|
||||
try {
|
||||
while (true) {
|
||||
String line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
String line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
MIPlugin.getDefault().debugLog(line);
|
||||
processMIOutput(line + "\n");
|
||||
}
|
||||
processMIOutput(line + "\n");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
fireEvent(new MIExitEvent());
|
||||
//e.printStackTrace();
|
||||
} finally {
|
||||
session.getMIInferior().setTerminated();
|
||||
session.terminate();
|
||||
fireEvent(new MIExitEvent());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue