summaryrefslogtreecommitdiff
path: root/www/js/MonitorCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/MonitorCtrl.js')
-rw-r--r--www/js/MonitorCtrl.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js
index aaf10972..6d77b4fe 100644
--- a/www/js/MonitorCtrl.js
+++ b/www/js/MonitorCtrl.js
@@ -394,10 +394,13 @@ angular.module('zmApp.controllers')
$scope.closeModal = function () {
console.log("Close & Destroy Monitor Modal");
+
+ // stop networking -nph-zms keeps sucking data
+
// switch off awake, as liveview is finished
ZMDataModel.setAwake(false);
$scope.modal.remove();
-
+ $timeout (function() {ZMDataModel.zmLog("Stopping network pull...");window.stop();},50);
};
//Cleanup the modal when we're done with it!
$scope.$on('$destroy', function () {