1
0
Fork 0
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:
Alain Magloire 2002-08-21 15:28:47 +00:00
parent 1a8b6c2253
commit d5fbd8f312

View file

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