Browse Source

handle leaving a room and entering again right after (fixes #17)

pull/22/head
Miguel Grinberg 9 years ago
parent
commit
74e9ab11dc
  1. 1
      socketio/base_manager.py

1
socketio/base_manager.py

@ -56,6 +56,7 @@ class BaseManager(object):
def enter_room(self, sid, namespace, room):
"""Add a client to a room."""
self._clean_rooms() # ensure our rooms are up to date first
if namespace not in self.rooms:
self.rooms[namespace] = {}
if room not in self.rooms[namespace]:

Loading…
Cancel
Save