Merge pull request #600 from cmorty/pull/cooja-also-remove-uninitialized-mote

Cooja: Also remove uninitialized motes
This commit is contained in:
Fredrik Österlind 2014-03-21 08:33:44 +01:00
commit d8f76a346d

View file

@ -757,6 +757,7 @@ public class Simulation extends Observable implements Runnable {
Runnable removeMote = new Runnable() { Runnable removeMote = new Runnable() {
public void run() { public void run() {
motes.remove(mote); motes.remove(mote);
motesUninit.remove(mote);
currentRadioMedium.unregisterMote(mote, Simulation.this); currentRadioMedium.unregisterMote(mote, Simulation.this);
/* Dispose mote interface resources */ /* Dispose mote interface resources */