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

Bug 310274: Need to set the fInterruptFailedJob to null in the executor to avoid multi-threaded issues

This commit is contained in:
Marc Khouzam 2010-04-23 15:15:26 +00:00
parent 03be2f6b40
commit a3332201e3

View file

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