summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-19 19:15:40 +0100
committerTheTroll <trolldev@gmail.com>2010-03-19 19:15:40 +0100
commit2e3115e6cc36bd71b951b3d3482df5a33dfa7301 (patch)
tree4e22d669958f05e54f97ff675ef9f9457718135f /bin/backend.php
parent0e792d5728d393aed562896897d5dee1586cf990 (diff)
downloadistreamdev-2e3115e6cc36bd71b951b3d3482df5a33dfa7301.tar.gz
istreamdev-2e3115e6cc36bd71b951b3d3482df5a33dfa7301.tar.bz2
Improved status
Diffstat (limited to 'bin/backend.php')
-rwxr-xr-xbin/backend.php19
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"):