From 6b6e787e4e461133c865560ba6ef398d08269b63 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 19 Mar 2019 12:05:45 -0400 Subject: [PATCH] fix ajax stream code --- web/ajax/stream.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/ajax/stream.php b/web/ajax/stream.php index 8589ce5ff..d9ada4430 100644 --- a/web/ajax/stream.php +++ b/web/ajax/stream.php @@ -51,7 +51,7 @@ if ( sem_acquire($semaphore,1) !== false ) { $msg = pack( 'lcN', MSG_CMD, $_REQUEST['command'], $_REQUEST['offset'] ); break; default : - Logger::Debug("Sending command " . $_REQUEST['command']); + ZM\Logger::Debug('Sending command ' . $_REQUEST['command']); $msg = pack( 'lc', MSG_CMD, $_REQUEST['command'] ); break; } @@ -64,7 +64,7 @@ if ( sem_acquire($semaphore,1) !== false ) { // WHY? We will just send another one... // ANSWER: Because otherwise we get a log of errors logged - //Logger::Debug("$remSockFile does not exist, waiting, current " . (time() - $start_time) . ' seconds' ); + //ZM\Logger::Debug("$remSockFile does not exist, waiting, current " . (time() - $start_time) . ' seconds' ); usleep(1000); } @@ -92,7 +92,7 @@ if ( sem_acquire($semaphore,1) !== false ) { ajaxError( "Socket closed $remSockFile" ); } else if ( $numSockets == 0 ) { ZM\Error( "Timed out waiting for msg $remSockFile" ); - socket_Set_nonblock($socket); + socket_set_nonblock($socket); #ajaxError("Timed out waiting for msg $remSockFile"); } else if ( $numSockets > 0 ) { if ( count($rSockets) != 1 ) {