From 7bca2e23fc4b5480c399b8e43f1e086babd825a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20=27Morty=27=20Str=C3=BCbe?= Date: Tue, 30 Oct 2012 11:42:05 +0100 Subject: [PATCH] Cooja: Allow running the simulation without motes. Normally it is not possible to start a simulation without motes. While this nomally makes sense, it might be, that motes are added at a later point in time by plugins. Removing this requirement is not problem, as it is still not possible to start the simulation without registered events. Thus a plugin can now register an event in the future to add motes at that point of time. --- tools/cooja/java/se/sics/cooja/Simulation.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/Simulation.java b/tools/cooja/java/se/sics/cooja/Simulation.java index 125e907d5..71c5bfc86 100644 --- a/tools/cooja/java/se/sics/cooja/Simulation.java +++ b/tools/cooja/java/se/sics/cooja/Simulation.java @@ -1104,9 +1104,6 @@ public class Simulation extends Observable implements Runnable { * @return True if simulation is runnable */ public boolean isRunnable() { - if (motes.isEmpty()) { - return false; - } return isRunning || hasPollRequests || eventQueue.peekFirst() != null; }