mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-04-11 09:38:45 +02:00
closing websocket explicit, before reopening it, to not end up with multiple connections and doublicated messages
This commit is contained in:
parent
758934c1e4
commit
1ef16c9c55
@ -118,6 +118,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
{
|
{
|
||||||
console.log("Server did not respond to ping in "+max_ping_response_time+" seconds --> try reconnecting");
|
console.log("Server did not respond to ping in "+max_ping_response_time+" seconds --> try reconnecting");
|
||||||
check_timer = null;
|
check_timer = null;
|
||||||
|
this.websocket.close(); // closing it now, before reopening it, to not end up with multiple connections
|
||||||
this.openWebSocket(url, tokens, account_id, error, reconnect_time);
|
this.openWebSocket(url, tokens, account_id, error, reconnect_time);
|
||||||
}.bind(this), max_ping_response_time);
|
}.bind(this), max_ping_response_time);
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user