diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-19 19:15:40 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-19 19:15:40 +0100 |
commit | 2e3115e6cc36bd71b951b3d3482df5a33dfa7301 (patch) | |
tree | 4e22d669958f05e54f97ff675ef9f9457718135f /bin/backend.php | |
parent | 0e792d5728d393aed562896897d5dee1586cf990 (diff) | |
download | istreamdev-2e3115e6cc36bd71b951b3d3482df5a33dfa7301.tar.gz istreamdev-2e3115e6cc36bd71b951b3d3482df5a33dfa7301.tar.bz2 |
Improved status
Diffstat (limited to 'bin/backend.php')
-rwxr-xr-x | bin/backend.php | 19 |
1 files changed, 2 insertions, 17 deletions
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"): |