mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Fix reset loop
This commit is contained in:
parent
437b4cba1b
commit
e710450983
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user