mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[Router] revert preserving of client.ol_context
We do not enter this line twice, it would result in multiple event handlers too.
This commit is contained in:
parent
d17ef183d0
commit
1fcf534dcf
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ module.exports = Router =
|
|||
app.post "/client/:client_id/disconnect", httpAuth, HttpApiController.disconnectClient
|
||||
|
||||
session.on 'connection', (error, client, session) ->
|
||||
client.ol_context = {} unless client.ol_context
|
||||
# init client context, we may access it in Router._handleError before
|
||||
# setting any values
|
||||
client.ol_context = {}
|
||||
|
||||
client?.on "error", (err) ->
|
||||
logger.err { clientErr: err }, "socket.io client error"
|
||||
|
|
Loading…
Reference in a new issue