From 83c694801c36f6c5b67ebcc3d69c15ac03dae264 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Wed, 7 May 2014 17:17:42 +0200 Subject: [PATCH] Check only online boxes for auto redirect --- js/ConnectingToNetworkPage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ConnectingToNetworkPage.js b/js/ConnectingToNetworkPage.js index 8e9bdb6..b3aabdb 100644 --- a/js/ConnectingToNetworkPage.js +++ b/js/ConnectingToNetworkPage.js @@ -60,7 +60,7 @@ console.log(" _wifiboxid: ",_wifiboxid); completeHandler(); },function() { - // try connecting anyway (making sure wifiboxid retrieval isn't blocking + // try connecting anyway (making sure wifiboxid retrieval isn't blocking) completeHandler(); }); } @@ -104,12 +104,14 @@ _actionField.attr("class","error"); break; } + // TODO ignore connected? _statusField.html(statusText); _actionField.html(actionText); // When the box is connecting we start checking connect.doodle3d.com // for a box with the same wifiboxid if(data.status === NetworkAPI.STATUS.CONNECTING && !_connectedChecking && _wifiboxid !== undefined) { + _connectAPI.checkLocal = false; _connectAPI.boxAppeared = onBoxAppeared; _connectAPI.start(); _connectedChecking = true;