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)
This commit is contained in:
Gina Häußge 2016-07-06 13:14:21 +02:00
parent 674d625150
commit eeaf68d61a

View file

@ -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);
}