summaryrefslogtreecommitdiff
path: root/www/js/EventServer.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventServer.js')
-rw-r--r--www/js/EventServer.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/js/EventServer.js b/www/js/EventServer.js
index da1e07a3..a67d5426 100644
--- a/www/js/EventServer.js
+++ b/www/js/EventServer.js
@@ -617,8 +617,12 @@ angular.module('zmApp.controllers')
// keep this emit not broadcast
// see Portal latch for reason
- NVRDataModel.debug ("EventServer: broadvasting process-push");
- $rootScope.$broadcast('process-push');
+ //https://stackoverflow.com/a/22651128/1361529
+ $timeout ( function () {
+ NVRDataModel.debug ("EventServer: broadcasting process-push");
+ $rootScope.$broadcast('process-push');
+ },100);
+
} else // app is foreground
{