From eeaf68d61a4d724d7aef1b593a7214ecb96b773a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 Jul 2016 13:14:21 +0200 Subject: [PATCH] Better timeout defaults for intermediary page In some situations an error could be displayed otherwise since online.gif was available, intermediary.gif wasn't anymore, but pinging the latter timed out before the next ping of the former. (cherry picked from commit 7809ba8) --- src/octoprint/static/intermediary.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/static/intermediary.html b/src/octoprint/static/intermediary.html index ee37e790..1f8b3919 100644 --- a/src/octoprint/static/intermediary.html +++ b/src/octoprint/static/intermediary.html @@ -176,7 +176,7 @@ } } else { // online.gif still not available, let's look at - var interval = 15; + var interval = 10; if (intervals.length) { interval = intervals.shift(); } @@ -200,7 +200,7 @@ } backendOfflineCounter++; - if (backendOfflineCounter > 10) { + if (backendOfflineCounter > 15) { if (serverTimeout) { window.clearTimeout(serverTimeout); }