diff --git a/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java b/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java index 025200d..a60ab0b 100644 --- a/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java +++ b/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java @@ -76,7 +76,7 @@ monitor.beginTask("Running instrumentation...", IProgressMonitor.UNKNOWN); Tracer.packageInstrumentation("", CLASS_PATH + "/"); monitor.done(); - return Status.OK_STATUS; + return (monitor.isCanceled()) ? Status.CANCEL_STATUS : Status.OK_STATUS; } }; job.setUser(true);