Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2015-01-30 00:49:06 -0500
committerTobias Schwarz2015-01-30 00:49:06 -0500
commitd3f59c41497330c47247e2348d9e7d978ccc682c (patch)
treecc774b545bba38975b1650120dee9742930102dd
parent494b32de5a621e4d2b2e34e1039b78f150790533 (diff)
downloadorg.eclipse.tcf-tcf-1.3_WR_20141128_4.0.4_bugfix.tar.gz
org.eclipse.tcf-tcf-1.3_WR_20141128_4.0.4_bugfix.tar.xz
org.eclipse.tcf-tcf-1.3_WR_20141128_4.0.4_bugfix.zip
SM: fix already running simulator is killed when not allowed to use ittcf-1.3_WR_20141128_4.0.4_bugfix
on connect
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/utils/SimulatorUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/utils/SimulatorUtils.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/utils/SimulatorUtils.java
index 7c31b3f15..d002acf6a 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/utils/SimulatorUtils.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/utils/SimulatorUtils.java
@@ -162,7 +162,7 @@ public final class SimulatorUtils {
result.service.useRunning(peerNode, result.settings, new Callback() {
@Override
protected void internalDone(Object caller, IStatus status) {
- setUsedRunningSimulator(peerNode, status.isOK());
+ setUsedRunningSimulator(peerNode, true);
callback.setResult(new Boolean(status.isOK()));
callback.done(caller, status);
}
@@ -213,6 +213,7 @@ public final class SimulatorUtils {
// Get the associated simulator service
final Result result = getSimulatorService(peerNode);
if (result != null && result.service != null && !getUsedRunningSimulator(peerNode)) {
+ setUsedRunningSimulator(peerNode, false);
// Determine if the simulator is at all running
result.service.isRunning(peerNode, result.settings, new Callback() {
@Override
@@ -233,6 +234,7 @@ public final class SimulatorUtils {
}
}, monitor);
} else {
+ setUsedRunningSimulator(peerNode, false);
callback.done(null, Status.OK_STATUS);
}
}

Back to the top