From e550e91067ebd03c548bd6205cdbb52ab94e961e Mon Sep 17 00:00:00 2001 From: TheTroll Date: Sat, 17 Apr 2010 15:05:33 +0200 Subject: Give time to pids to be created (2 secs) --- bin/session.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/session.php b/bin/session.php index 6a104dc..9930a3d 100644 --- a/bin/session.php +++ b/bin/session.php @@ -93,12 +93,15 @@ function sessioncreate($type, $url, $mode) default: $cmd = ""; } - + addlog("Sending encoding command: " .$cmd); $cmd = str_replace('%', '%%', $cmd); exec ($cmd); + // Give the time to the scrip to create pids + exec ("sleep 2"); + // Write streaminfo writeinfostream($session, $type, $mode, $url, $channame); -- cgit v1.2.3