From 67bca87c1d6215dbc1f916ae9d5320545a4c3963 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 15 Jun 2009 16:51:42 +0000 Subject: [PATCH] bugfix: remove unsorted time event --- tools/cooja/java/se/sics/cooja/EventQueue.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/EventQueue.java b/tools/cooja/java/se/sics/cooja/EventQueue.java index 1fd33b39b..688b5d8c0 100644 --- a/tools/cooja/java/se/sics/cooja/EventQueue.java +++ b/tools/cooja/java/se/sics/cooja/EventQueue.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * 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; @@ -52,7 +52,9 @@ public class EventQueue { hasUnsortedEvents = false; for (TimeEvent e: unsortedEvents) { - addEvent(e); + if (!e.removed) { + addEvent(e); + } } unsortedEvents.clear(); }