Also remove uninitialized motes

This commit is contained in:
Moritz 'Morty' Strübe 2014-03-20 14:45:43 +01:00
parent b78eb96a54
commit 50fe1e7046

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 */