From 81ec89ba112791973caddc0d21c691e7e953a296 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Fri, 6 May 2016 05:58:14 -0400 Subject: if you cancel portal login,kill http requests that are pending and get out of reachability recursion Former-commit-id: 06c00c92f4cefaad9595ab244a7427038eed6dd3 --- www/js/DataModel.js | 2 +- www/js/app.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 53a79ecd..f46508f3 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -324,7 +324,7 @@ angular.module('zmApp.controllers') function findFirstReachableUrl (urls) { - if (urls.length > 0) + if (urls.length > 0 && $rootScope.userCancelledAuth != true) { $ionicLoading.show({template: 'trying ' + urls[0].server}); zmLog ("Reachability test.." + urls[0].url); diff --git a/www/js/app.js b/www/js/app.js index dca1aa6e..be606515 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1107,6 +1107,7 @@ angular.module('zmApp', [ disableBack: true }); $rootScope.userCancelledAuth = true; + window.stop(); $state.go("login" ,{"wizard": false}); }; -- cgit v1.2.3