1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 346125 - Exception when disposing TracingConsole

This commit is contained in:
Marc Khouzam 2011-05-17 17:05:02 +00:00
parent fae15af193
commit 24d1fac035

View file

@ -82,11 +82,15 @@ public class TracingConsole extends IOConsole {
fTracingStream.close();
} catch (IOException e) {
}
fSession.getExecutor().submit(new DsfRunnable() {
public void run() {
fSession.removeServiceEventListener(TracingConsole.this);
}
});
try {
fSession.getExecutor().submit(new DsfRunnable() {
public void run() {
fSession.removeServiceEventListener(TracingConsole.this);
}
});
} catch (RejectedExecutionException e) {
// Session already disposed
}
super.dispose();
}