From 172198afa7ea171dc81a52af0399385535a735aa Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Mon, 29 Oct 2018 11:45:21 +0100
Subject: [PATCH] [enh] Check is fallback is alive before asking confirmation
 to user

---
 www/js/platform.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/js/platform.js b/www/js/platform.js
index 24ffeb174..bc34beb4c 100644
--- a/www/js/platform.js
+++ b/www/js/platform.js
@@ -151,7 +151,7 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services']
           // silent, but return no result (will loop to the next fallback node)
         })
         .then(function(res) {
-          if (!res) checkBmaNodeAlive(); // Loop
+          if (!res) return checkBmaNodeAlive(); // Loop
 
           return $translate('CONFIRM.USE_FALLBACK_NODE', {old: BMA.server, new: newServer})
             .then(function(msg) {
-- 
GitLab