From 2e3115e6cc36bd71b951b3d3482df5a33dfa7301 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Fri, 19 Mar 2010 19:15:40 +0100 Subject: Improved status --- bin/backend.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'bin/backend.php') diff --git a/bin/backend.php b/bin/backend.php index 5cca474..f312ed0 100755 --- a/bin/backend.php +++ b/bin/backend.php @@ -71,23 +71,8 @@ switch ($action) break; case ("getStreamStatus"): - $time = time(); - $session = $_REQUEST['session']; - $prevmsg = $_REQUEST['msg']; - while((time() - $time) < 29) - { - // Get current status - $status = getStreamStatus($session); - - $statusdec = json_decode($status); - if (($statusdec->message != $prevmsg) || ($statusdec->status == "ready")) - { - print $status; - break; - } - - usleep(1000); - } + $tree= getStreamStatus($_REQUEST['session'], $_REQUEST['msg']); + print $tree; break; case ("getTimers"): -- cgit v1.2.3