Fix reset loop

This commit is contained in:
Pierre HUBERT 2021-04-16 08:00:01 +02:00
parent 437b4cba1b
commit e710450983

View File

@ -112,6 +112,7 @@ class UserWebSocket {
notify("Disconnected from the server, page will be reloaded in "+num_seconds+" seconds !", "danger"); notify("Disconnected from the server, page will be reloaded in "+num_seconds+" seconds !", "danger");
setTimeout(() => { setTimeout(() => {
if (!this.IsConnected)
ComunicWeb.common.system.reset(); ComunicWeb.common.system.reset();
}, num_seconds*1000); }, num_seconds*1000);
} }