mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
socket: Initialize client_id to None by default.
This fixes an exception where client_id was never set in an error code path. It shouldn't be needed, but I think this makes the code clearer and this will help in debugging the actual problem. Related to #753.
This commit is contained in:
@@ -72,6 +72,8 @@ class CloseErrorInfo(object):
|
||||
self.err_msg = err_msg
|
||||
|
||||
class SocketConnection(sockjs.tornado.SockJSConnection):
|
||||
client_id = None # type: str
|
||||
|
||||
def on_open(self, info):
|
||||
log_data = dict(extra='[transport=%s]' % (self.session.transport_name,))
|
||||
record_request_start_data(log_data)
|
||||
|
||||
Reference in New Issue
Block a user