summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
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"):