From effe85265f3fd58b14e979a4d24580347db3018a Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Thu, 7 Dec 2017 17:29:02 +0100 Subject: [locationinfo] Cleared the old timeout before calling the new one. --- modules-available/locationinfo/templates/frontend-summary.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules-available/locationinfo') diff --git a/modules-available/locationinfo/templates/frontend-summary.html b/modules-available/locationinfo/templates/frontend-summary.html index 9b375d4f..ec5d8aab 100644 --- a/modules-available/locationinfo/templates/frontend-summary.html +++ b/modules-available/locationinfo/templates/frontend-summary.html @@ -194,6 +194,7 @@ const ROOMUPDATE_MS = 2*60*1000; const CALUPDATE_MS = 20*60*1000; + var timeout = null; function update() { var calendarUpdateIds = ""; @@ -228,6 +229,7 @@ for (property in rooms) { upDateRoomState(rooms[property]); } + clearTimeout(timeout); setTimeout(update, nextUpdate); } -- cgit v1.2.3-55-g7522