Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of github.com:mquinson/simgrid
[simgrid.git] / contrib / psg / src / psgsim / PSGSimulator.java
index 4d45d4e..cd60973 100644 (file)
@@ -85,8 +85,9 @@ public class PSGSimulator {
 
                /** Process Controller **/
                PSGPlatform.control();
-               new PSGProcessController(PSGPlatform.hostList[0],
-                               PSGPlatform.hostList[0].getName(), null).start();
+               if (!PSGPlatform.controlStepMap.isEmpty())
+                       new PSGProcessController(PSGPlatform.hostList[0],
+                                       PSGPlatform.hostList[0].getName(), null).start();
 
                /** Load and execute the initializers classes in the configuration file **/
                PSGPlatform.init();