Cooja: Load whole simulation before executing it in nogui mode

This commit is contained in:
Moritz 'Morty' Strübe 2012-10-30 11:41:55 +01:00
parent 53f4d27af4
commit becd2d4e15
2 changed files with 3 additions and 5 deletions

View File

@ -3227,14 +3227,14 @@ public class GUI extends Observable {
logger.fatal("Error: " + e.getMessage(), e);
System.exit(1);
}
sim.setSpeedLimit(null);
sim.startSimulation();
} else {
logger.fatal("No test editor controlling simulation, aborting");
System.exit(1);
}
}
sim.setSpeedLimit(null);
sim.startSimulation();
} else if (args.length > 0 && args[0].startsWith("-applet")) {
String tmpWebPath=null, tmpBuildPath=null, tmpEsbFirmware=null, tmpSkyFirmware=null;

View File

@ -672,8 +672,6 @@ public class ScriptRunner extends VisPlugin {
} catch (Exception e) {
logger.fatal("Error: " + e.getMessage(), e);
}
simulation.setSpeedLimit(null);
simulation.startSimulation();
}
return true;
}