diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-11 12:04:50 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-11 12:04:50 -0400 |
| commit | e4a4af16734a7b63bf23b27ce0c6041276e6ecc3 (patch) | |
| tree | 11ba20b611300a87656041e6b201053c1c92768f /www/js/MontageHistoryCtrl.js | |
| parent | d7c5302f66c905177cf8314ffca121a0593328cd (diff) | |
#606 more cleanups
Diffstat (limited to 'www/js/MontageHistoryCtrl.js')
| -rw-r--r-- | www/js/MontageHistoryCtrl.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 75fcdcc7..7c3c3d9c 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -227,7 +227,10 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc $scope.dragBorder = ""; $scope.isDragabillyOn = false; $ionicSideMenuDelegate.canDragContent(false); - NVRDataModel.stopNetwork("MontageHistory-footerCollapse"); + + for (i=0; i < $scope.MontageMonitors.length; i++) { + NVRDataModel.killLiveStream($scope.MontageMonitors[i]); + } NVRDataModel.regenConnKeys(); var ld = NVRDataModel.getLogin(); @@ -927,8 +930,12 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc // thats why we are doing it beforeLeave pckry.destroy(); window.removeEventListener("resize", orientationChanged, false); - NVRDataModel.log("Forcing a window.stop() here"); - NVRDataModel.stopNetwork("MontageHistory-beforeLeave"); + //NVRDataModel.log("Forcing a window.stop() here"); + //NVRDataModel.stopNetwork("MontageHistory-beforeLeave"); + + for (i=0; i < $scope.MontageMonitors.length; i++) { + NVRDataModel.killLiveStream($scope.MontageMonitors[i]); + } }); $scope.$on('$ionicView.unloaded', function() {}); $scope.sliderChanged = function(dirn) |
