mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user