Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-06-20 06:50:08 -0400
committerUwe Stieber2015-06-20 06:50:08 -0400
commit717de89459f8af0475644f21cd6f6799023f5c83 (patch)
treecdb8129fd8242326082b98d036a1f65d24489643 /target_explorer
parenta2d6712c6b7d82c29c0ff9b320206427bb1efa7a (diff)
downloadorg.eclipse.tcf-717de89459f8af0475644f21cd6f6799023f5c83.tar.gz
org.eclipse.tcf-717de89459f8af0475644f21cd6f6799023f5c83.tar.xz
org.eclipse.tcf-717de89459f8af0475644f21cd6f6799023f5c83.zip
Target Explorer: Fix assertion in process launcher onTerminateDone
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.java5
1 files changed, 3 insertions, 2 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 bde2d8206..0ce590eb4 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
@@ -200,11 +200,12 @@ public class ProcessLauncher extends PlatformObject implements IProcessLauncher
public void run() {
if (channel != null && channel.getState() == IChannel.STATE_OPEN) {
if (processContext != null && processContext.canTerminate()) {
+ final IProcesses.ProcessContext finProcessContext = processContext;
// Try to terminate the process the usual way first (sending SIGTERM)
- processContext.terminate(new IProcesses.DoneCommand() {
+ finProcessContext.terminate(new IProcesses.DoneCommand() {
@Override
public void doneCommand(IToken token, Exception error) {
- onTerminateDone(processContext, error);
+ onTerminateDone(finProcessContext, error);
}
});
}

Back to the top