bugfix: remove unsorted time event
This commit is contained in:
parent
a45e2382b2
commit
67bca87c1d
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: EventQueue.java,v 1.6 2009/05/26 13:36:36 fros4943 Exp $
|
* $Id: EventQueue.java,v 1.7 2009/06/15 16:51:42 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja;
|
package se.sics.cooja;
|
||||||
|
@ -52,8 +52,10 @@ public class EventQueue {
|
||||||
hasUnsortedEvents = false;
|
hasUnsortedEvents = false;
|
||||||
|
|
||||||
for (TimeEvent e: unsortedEvents) {
|
for (TimeEvent e: unsortedEvents) {
|
||||||
|
if (!e.removed) {
|
||||||
addEvent(e);
|
addEvent(e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
unsortedEvents.clear();
|
unsortedEvents.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue