From a2a0c8aab240ff040036849bf710dbffb597e6a8 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 10 Feb 2019 11:42:56 -0500 Subject: #781 don't send if state is rejected --- www/js/EventServer.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'www/js/EventServer.js') diff --git a/www/js/EventServer.js b/www/js/EventServer.js index dffb2120..c79aa1dd 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -437,6 +437,11 @@ angular.module('zmApp.controllers') return; } + if (authState == connState.REJECT && type != 'auth') { + NVR.debug ("ERROR: ES rejected authentication, not sending message"); + return; + } + if ( authState == connState.PENDING && type != 'auth') { NVR.debug ("ES Connection not yet authenticated, adding message to queue"); pendingMessages.push ({type:type, obj:obj}); -- cgit v1.2.3