diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventServer.js | 5 |
1 files changed, 5 insertions, 0 deletions
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}); |
