From b5ded62e964e4a63905a0d1cea5f8f62d85956fb Mon Sep 17 00:00:00 2001 From: Stefan Derkits Date: Thu, 13 Jun 2013 15:16:43 +0200 Subject: [PATCH] avoid concurrent modification exception in handleDelayedApps() --- src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java b/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java index 08735a4..7998823 100644 --- a/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java +++ b/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java @@ -206,8 +206,8 @@ public abstract class AbstractScheduler { for (Application app : delayedApps) { SchedulerEvent evt = new SchedulerEvent(currTime, EventType.startApplication, app); delayedStartEvents.add(evt); - delayedApps.remove(app); } + delayedApps.clear(); handleStartEvents(delayedStartEvents); } -- 2.43.0