Skip to content

Commit

Permalink
handle leaving a room and entering again right after (fixes #17)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Mar 6, 2016
1 parent dabe33f commit 74e9ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions socketio/base_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def disconnect(self, sid, namespace):

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]:
Expand Down

0 comments on commit 74e9ab1

Please sign in to comment.