X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/200986a368bbbbb5df459d43cbc7f5ef3d7678db..46448320f12d59d0a5efc015ec51ec6ebba525c6:/contrib/psg/src/psgsim/PSGSimulator.java diff --git a/contrib/psg/src/psgsim/PSGSimulator.java b/contrib/psg/src/psgsim/PSGSimulator.java index 4d45d4e438..cd60973b3d 100644 --- a/contrib/psg/src/psgsim/PSGSimulator.java +++ b/contrib/psg/src/psgsim/PSGSimulator.java @@ -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();