forked from extern/egroupware
try to fix race-condition in reconnecting a "lost" websocket connection
This commit is contained in:
parent
ed9062d839
commit
8bda698954
@ -122,7 +122,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
{
|
{
|
||||||
this.websocket = null;
|
this.websocket = null;
|
||||||
this.openWebSocket(url, tokens, account_id, error, reconnect_time);
|
this.openWebSocket(url, tokens, account_id, error, reconnect_time);
|
||||||
}
|
}.bind(this);
|
||||||
this.websocket.close(); // closing it now, before reopening it, to not end up with multiple connections
|
this.websocket.close(); // closing it now, before reopening it, to not end up with multiple connections
|
||||||
}.bind(this), max_ping_response_time);
|
}.bind(this), max_ping_response_time);
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user