fixed sleep behavior to not sleep when the process is the last one we'd run,
[feisty_meow.git] / scripts / opensim / opensim_utils.sh
index 9405ba6fca8f3d24b5bf25284678413da002170a..3985411f1c34c5192e7242924c886a2d8f8a779c 100644 (file)
@@ -40,7 +40,10 @@ function launch_screen()
 ##why? --debug 
 #-console=basic 
   echo "$(date_stringer ' '): $screen_name started."
-  sleep $SNOOZE_TIME
+  # only sleep if we are not at the last process that gets started.
+  if [ "$app_name" != "OpenSim.exe" ]; then
+    sleep $SNOOZE_TIME
+  fi
 }
 
 # finds the opensim process specified or returns a blank string in the