Merge pull request #1307 from cmorty/pull/uninitmotes
Cooja: Make sure motes are always removed from the list of unintialized motes
This commit is contained in:
commit
5f7e77b3f9
|
@ -847,6 +847,9 @@ public class Simulation extends Observable implements Runnable {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//Add to list of uninitialized motes
|
||||||
|
motesUninit.add(mote);
|
||||||
|
|
||||||
if (!isRunning()) {
|
if (!isRunning()) {
|
||||||
/* Simulation is stopped, add mote immediately */
|
/* Simulation is stopped, add mote immediately */
|
||||||
addMote.run();
|
addMote.run();
|
||||||
|
@ -854,8 +857,6 @@ public class Simulation extends Observable implements Runnable {
|
||||||
/* Add mote from simulation thread */
|
/* Add mote from simulation thread */
|
||||||
invokeSimulationThread(addMote);
|
invokeSimulationThread(addMote);
|
||||||
}
|
}
|
||||||
//Add to list of uninitialized motes
|
|
||||||
motesUninit.add(mote);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue