Kaynağa Gözat

add sleep between processes

David 10 yıl önce
ebeveyn
işleme
debe802e5e
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      server/launchall.sh

+ 4 - 0
server/launchall.sh

@@ -3,7 +3,9 @@
 function finish {
 	echo "Exiting"
 	echo '{"type": "snowmix", "command": "kill", "key": "video"}' | wscat
+	sleep 0.2
 	echo '{"type": "snowmix", "command": "kill", "key": "audio"}' | wscat
+	sleep 0.2
 	echo '{"type": "snowmix", "command": "kill", "key": "rtmp"}' | wscat
 }
 
@@ -17,7 +19,9 @@ trap finish EXIT
 
 echo "Running" 
 echo '{"type": "snowmix", "command": "launch", "key": "video"}' | wscat
+sleep 0.2
 echo '{"type": "snowmix", "command": "launch", "key": "audio"}' | wscat
+sleep 0.2
 echo '{"type": "snowmix", "command": "launch", "key": "rtmp"}' | wscat
 
 sleep infinity