Cooja: Load whole simulation before executing it in nogui mode
This commit is contained in:
parent
53f4d27af4
commit
becd2d4e15
|
@ -3227,13 +3227,13 @@ public class GUI extends Observable {
|
||||||
logger.fatal("Error: " + e.getMessage(), e);
|
logger.fatal("Error: " + e.getMessage(), e);
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
sim.setSpeedLimit(null);
|
|
||||||
sim.startSimulation();
|
|
||||||
} else {
|
} else {
|
||||||
logger.fatal("No test editor controlling simulation, aborting");
|
logger.fatal("No test editor controlling simulation, aborting");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sim.setSpeedLimit(null);
|
||||||
|
sim.startSimulation();
|
||||||
|
|
||||||
} else if (args.length > 0 && args[0].startsWith("-applet")) {
|
} else if (args.length > 0 && args[0].startsWith("-applet")) {
|
||||||
|
|
||||||
|
|
|
@ -672,8 +672,6 @@ public class ScriptRunner extends VisPlugin {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.fatal("Error: " + e.getMessage(), e);
|
logger.fatal("Error: " + e.getMessage(), e);
|
||||||
}
|
}
|
||||||
simulation.setSpeedLimit(null);
|
|
||||||
simulation.startSimulation();
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue