From edbe726e8653cd829dbbd67de5888a8cade19603 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 17 Dec 2021 09:41:45 -0500 Subject: [PATCH] Implement semaphore retry. Make not getting the semaphore an error --- web/ajax/stream.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/web/ajax/stream.php b/web/ajax/stream.php index 2557977ca..ade101845 100644 --- a/web/ajax/stream.php +++ b/web/ajax/stream.php @@ -1,5 +1,5 @@ $data)); break; default : - ajaxError("Unexpected received message type '$type'"); + ajaxError('Unexpected received message type '.$data['type']); } sem_release($semaphore); } else { - ZM\Debug('Couldn\'t get semaphore'); - ajaxResponse(array()); + ajaxError("Unable to get semaphore."); } ajaxError('Unrecognised action or insufficient permissions in ajax/stream');