Skip to content

Commit

Permalink
Cooja: Allow running the simulation without motes.
Browse files Browse the repository at this point in the history
 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.
  • Loading branch information
cmorty committed Oct 31, 2012
1 parent 64c0b9c commit 7bca2e2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/cooja/java/se/sics/cooja/Simulation.java
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,6 @@ public boolean isRunning() {
* @return True if simulation is runnable
*/
public boolean isRunnable() {
if (motes.isEmpty()) {
return false;
}
return isRunning || hasPollRequests || eventQueue.peekFirst() != null;
}

Expand Down

0 comments on commit 7bca2e2

Please sign in to comment.