Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2010-04-23 15:15:26 +0000
committerMarc Khouzam2010-04-23 15:15:26 +0000
commita3332201e38df8185d84f7728bf2b526007bfd31 (patch)
treeb587b4528c7fbd8748bd4f518afa6ec1d2a65d98
parent03be2f6b4015232ee1455e708e9ab7e2573508d7 (diff)
downloadorg.eclipse.cdt-a3332201e38df8185d84f7728bf2b526007bfd31.tar.gz
org.eclipse.cdt-a3332201e38df8185d84f7728bf2b526007bfd31.tar.xz
org.eclipse.cdt-a3332201e38df8185d84f7728bf2b526007bfd31.zip
Bug 310274: Need to set the fInterruptFailedJob to null in the executor to avoid multi-threaded issues
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend.java
index 8fd86f9b9ab..8b93ff08882 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend.java
@@ -695,10 +695,10 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend {
@Override
protected IStatus run(IProgressMonitor monitor) {
- fInterruptFailedJob = null;
getExecutor().submit(
new DsfRunnable() {
public void run() {
+ fInterruptFailedJob = null;
fRequestMonitor.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, IDsfStatusConstants.REQUEST_FAILED, "Interrupt failed.", null)); //$NON-NLS-1$
fRequestMonitor.done();
}

Back to the top