1
0
Fork 0
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:
Alain Magloire 2002-11-18 19:04:16 +00:00
parent b4b5f94323
commit d27bd20cc2

View file

@ -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;
} }
/** /**