From e7104509834a365ed856cb73dd6b0b1802b02305 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 16 Apr 2021 08:00:01 +0200 Subject: [PATCH] Fix reset loop --- assets/js/common/ws.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/common/ws.js b/assets/js/common/ws.js index 9b3bc9b6..a956c2d6 100644 --- a/assets/js/common/ws.js +++ b/assets/js/common/ws.js @@ -112,7 +112,8 @@ class UserWebSocket { notify("Disconnected from the server, page will be reloaded in "+num_seconds+" seconds !", "danger"); setTimeout(() => { - ComunicWeb.common.system.reset(); + if (!this.IsConnected) + ComunicWeb.common.system.reset(); }, num_seconds*1000); }