From c774a5d06e755d1113ff2ee70cc4b276fc91dc9c Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 12 Jul 2021 13:24:32 +0530 Subject: [PATCH] time out if checkup test #7 doesn't call back in 30s --- www/checkup/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www/checkup/main.js b/www/checkup/main.js index f4a40d11e..a8a69d737 100644 --- a/www/checkup/main.js +++ b/www/checkup/main.js @@ -255,6 +255,11 @@ define([ ])); })); + // time out after 30 seconds + setTimeout(function () { + cb('TIMEOUT'); + }, 30000); + var bytes = new Uint8Array(Login.requiredBytes); var opt = Login.allocateBytes(bytes); @@ -727,8 +732,6 @@ define([ '. ', RESTART_WARNING(), ])); - - console.error("HTTPS?", trimmedUnsafe, trimmedSafe); cb(isHTTPS(trimmedUnsafe) && isHTTPS(trimmedSafe)); });