# semaphore retry introduced boolean issue breaking playback controls # # https://forums.zoneminder.com/viewtopic.php?p=126747 # https://forums.zoneminder.com/viewtopic.php?p=126747 diff --git a/web/ajax/stream.php b/web/ajax/stream.php index 02b78b238..3eff34fc8 100644 --- a/web/ajax/stream.php +++ b/web/ajax/stream.php @@ -25,7 +25,7 @@ while ( $semaphore_tries ) { usleep(100000); $semaphore_tries -= 1; } -if ($have_semaphore) { +if ($have_semaphore !== false) { if ( !($socket = @socket_create(AF_UNIX, SOCK_DGRAM, 0)) ) { ajaxError('socket_create() failed: '.socket_strerror(socket_last_error())); }