Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashi2016-09-28 03:22:48 -0400
committerashi2016-09-28 03:22:48 -0400
commit6a4aac937e6fcb867f1cdc2bb560c9d7738fdc58 (patch)
tree3738ed2ae5ad7e87e11e4fc3cb5f949cab698008 /target_explorer
parentf0493024ca199403a8ef34e6bb76b0aa8a44da41 (diff)
downloadorg.eclipse.tcf-6a4aac937e6fcb867f1cdc2bb560c9d7738fdc58.tar.gz
org.eclipse.tcf-6a4aac937e6fcb867f1cdc2bb560c9d7738fdc58.tar.xz
org.eclipse.tcf-6a4aac937e6fcb867f1cdc2bb560c9d7738fdc58.zip
Bug 502218 - Target Explorer: AssertionFailedException when
ProcessLauncher dispose. Mark callback done, and set status as status.Cancel, when ProcesLauncher.cancel() called. Signed-off-by: ashi <Aijun.Shi@windriver.com>
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
index 32727365a..313e4efc6 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
@@ -258,6 +258,14 @@ public class ProcessLauncher extends PlatformObject implements IProcessLauncher
@Override
public void cancel() {
if (activeToken != null && (callback == null || !callback.isDone())) {
+ /*
+ * Bug 502218 - Target Explorer: AssertionFailedException when ProcessLauncher dispose.
+ * Mark callback done, and set status as status.Cancel, when ProcesLauncher.cancel() called.
+ */
+ if (callback != null) {
+ callback.done(this, Status.CANCEL_STATUS);
+ }
+
final IToken token = activeToken;
activeToken = null;
Protocol.invokeLater(new Runnable() {

Back to the top