mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Move the assignements before fire the events.
This commit is contained in:
parent
b4b5f94323
commit
d27bd20cc2
1 changed files with 3 additions and 2 deletions
|
@ -132,6 +132,9 @@ public class CTarget implements ICDITarget {
|
||||||
// get the new Threads.
|
// get the new Threads.
|
||||||
CThread[] newThreads = getCThreads();
|
CThread[] newThreads = getCThreads();
|
||||||
|
|
||||||
|
currentThreads = newThreads;
|
||||||
|
currentThreadId = newThreadId;
|
||||||
|
|
||||||
// Fire destroyedEvent for old threads.
|
// Fire destroyedEvent for old threads.
|
||||||
if (oldThreads != null && oldThreads.length > 0) {
|
if (oldThreads != null && oldThreads.length > 0) {
|
||||||
List dList = new ArrayList(oldThreads.length);
|
List dList = new ArrayList(oldThreads.length);
|
||||||
|
@ -157,8 +160,6 @@ public class CTarget implements ICDITarget {
|
||||||
miSession.fireEvents(events);
|
miSession.fireEvents(events);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
currentThreads = newThreads;
|
|
||||||
currentThreadId = newThreadId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue