From 155d9d369a917f86f6df4c2f5302d2cbce3658ff Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 25 May 2023 18:53:47 +0200 Subject: [PATCH] Try again a bit later if there was a connection interruption in taillog Signed-off-by: DL6ER --- scripts/pi-hole/js/taillog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pi-hole/js/taillog.js b/scripts/pi-hole/js/taillog.js index e5d64f83..3a5babb2 100644 --- a/scripts/pi-hole/js/taillog.js +++ b/scripts/pi-hole/js/taillog.js @@ -99,6 +99,9 @@ function getData() { }) .fail(function (data) { apiFailure(data); + + // Restart timer + setTimeout(getData, 5*interval); }); }