From 9fafe3a2fbdd85e8b53eb36451b824cf93c4748b Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Fri, 17 Nov 2017 17:22:52 +0100 Subject: [PATCH] adjusting timers because of issues with certain devices --- static/js/captiveportal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/captiveportal.js b/static/js/captiveportal.js index 192809a..ff21497 100644 --- a/static/js/captiveportal.js +++ b/static/js/captiveportal.js @@ -123,12 +123,12 @@ function poll_jobs(data) { reject("Job polling timed out"); return; } else { - timer = setTimeout(pollJob, 1500); + timer = setTimeout(pollJob, 2000); } }; // Here I just want the pollJob function to run immediately - var timer = setTimeout(pollJob, 200); + var timer = setTimeout(pollJob, 1000); })); } @@ -142,7 +142,7 @@ function poll_jobs(data) { if (success === true) { // This timeout might be important if device wifi prompts seem to // hang on the portal without redirecting on their own. - setTimeout(do_success, 200); + setTimeout(do_success, 2000); } // This is reject() above.