Skip to content

Commit

Permalink
rref #5367
Browse files Browse the repository at this point in the history
rref #5366
ref #66
ref #65
  • Loading branch information
evrenesat committed Jun 30, 2016
1 parent cebba90 commit bf87064
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zengine/tornado_server/queue_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def _send_message(self, sess_id, input_data):
body=json_encode(input_data))

def _store_user_id(self, sess_id, body):
log.debug("SET SESSUSERS: %s" % sys.sessid_to_userid)
sys.sessid_to_userid[sess_id[5:]] = json_decode(body)['user_id'].lower()

def _wait_for_reply(self, sess_id, input_data):
Expand Down Expand Up @@ -193,6 +194,7 @@ def register_websocket(self, sess_id, ws):
sess_id:
ws:
"""
log.debug("GET SESSUSERS: %s" % sys.sessid_to_userid)
user_id = sys.sessid_to_userid[sess_id]
self.websockets[user_id] = ws
self.create_out_channel(sess_id, user_id)
Expand Down

0 comments on commit bf87064

Please sign in to comment.