mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Cooja: Make sure motes are always removed from the list of unintialized motes
This commit is contained in:
parent
6b29e4b30d
commit
e544e4c5b0
@ -847,6 +847,9 @@ public class Simulation extends Observable implements Runnable {
|
||||
}
|
||||
};
|
||||
|
||||
//Add to list of uninitialized motes
|
||||
motesUninit.add(mote);
|
||||
|
||||
if (!isRunning()) {
|
||||
/* Simulation is stopped, add mote immediately */
|
||||
addMote.run();
|
||||
@ -854,8 +857,6 @@ public class Simulation extends Observable implements Runnable {
|
||||
/* Add mote from simulation thread */
|
||||
invokeSimulationThread(addMote);
|
||||
}
|
||||
//Add to list of uninitialized motes
|
||||
motesUninit.add(mote);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user