[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:
Jakob Ackermann 2020-04-22 11:36:20 +02:00
parent d17ef183d0
commit 1fcf534dcf

View file

@ -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"