mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 04:33:36 +02:00
check if the target is terminated
This commit is contained in:
parent
a0681af9ce
commit
fd19cbc055
1 changed files with 3 additions and 1 deletions
|
@ -245,7 +245,9 @@ public class Session implements ICDISession, ICDISessionObject {
|
||||||
ProcessManager pMgr = getProcessManager();
|
ProcessManager pMgr = getProcessManager();
|
||||||
Target[] targets = pMgr.getTargets();
|
Target[] targets = pMgr.getTargets();
|
||||||
for (int i = 0; i < targets.length; ++i) {
|
for (int i = 0; i < targets.length; ++i) {
|
||||||
targets[i].terminate();
|
if (!targets[i].isTerminated()) {
|
||||||
|
targets[i].terminate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//TODO: the ExitEvent is sent by MISession.terminate()
|
//TODO: the ExitEvent is sent by MISession.terminate()
|
||||||
// We nee move it here.
|
// We nee move it here.
|
||||||
|
|
Loading…
Add table
Reference in a new issue