Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2011-05-17 17:05:02 +0000
committerMarc Khouzam2011-05-17 17:05:02 +0000
commit24d1fac0352caa18f31f419aab7c528b5483548c (patch)
tree9c5f21ad83acc8256ae47f6beabd46baae4eabda
parentfae15af193d8d0a39e24d550cadbd0a724b3b21b (diff)
downloadorg.eclipse.cdt-24d1fac0352caa18f31f419aab7c528b5483548c.tar.gz
org.eclipse.cdt-24d1fac0352caa18f31f419aab7c528b5483548c.tar.xz
org.eclipse.cdt-24d1fac0352caa18f31f419aab7c528b5483548c.zip
Bug 346125 - Exception when disposing TracingConsole
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/TracingConsole.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/TracingConsole.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/TracingConsole.java
index 13b6e6b4df..2f873307d3 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/TracingConsole.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/TracingConsole.java
@@ -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();
}

Back to the top