summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-17 11:55:09 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-17 11:55:09 -0400
commit7a6d87d822c0f7e0bf915fa08e4af97bfe381375 (patch)
treeadcb1314730bf74177bee1154bb288f48e5ca7ab /www/js
parent18cd1f1e9ad097971d7f7b213697be63b28cb481 (diff)
add es error delay
Diffstat (limited to 'www/js')
-rwxr-xr-xwww/js/app.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/www/js/app.js b/www/js/app.js
index f6da56cd..c2cdf770 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -106,6 +106,7 @@ angular.module('zmApp', [
forceMontageReloadDelay: 4500000, // 1 hr 15m,
thumbWidth:200,
alarmStatusTime: 10000,
+ eventServerErrorDelay:5000, // time to wait till I report initial connect errors
})
@@ -1772,10 +1773,7 @@ angular.module('zmApp', [
NVRDataModel.log("Language file loaded, continuing with rest");
NVRDataModel.init();
- // now do SSL check
- //setSSLCerts();
-
- //EventServer.init();
+
zmCheckUpdates.start();
NVRDataModel.log("Setting up POST LOGIN timer");
zmAutoLogin.start();
@@ -1855,9 +1853,8 @@ angular.module('zmApp', [
NVRDataModel.setJustResumed(false);
// NVRDataModel.setJustResumed(true); // used for window stop
- EventServer.disconnect();
-
NVRDataModel.log("ROOT APP:App is going into background");
+ EventServer.disconnect();
$interval.cancel($rootScope.eventQueryInterval);
$interval.cancel($rootScope.intervalHandle);
@@ -1866,8 +1863,8 @@ angular.module('zmApp', [
$rootScope.zmPopup.close();
- NVRDataModel.log("ROOT APP: Stopping network ");
- NVRDataModel.stopNetwork("called from app.js");
+ // NVRDataModel.log("ROOT APP: Stopping network ");
+ //NVRDataModel.stopNetwork("called from app.js");
// dont call stopNetwork - we need to stop here