Skip to content

Commit

Permalink
Fix synchronization issue in SocketIO (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi authored and miguelgrinberg committed Nov 9, 2018
1 parent da7cb86 commit 4a030d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socketio/base_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def disconnect(self, sid, namespace):
if namespace not in self.rooms:
return
rooms = []
for room_name, room in six.iteritems(self.rooms[namespace]):
for room_name, room in six.iteritems(self.rooms[namespace].copy()):
if sid in room:
rooms.append(room_name)
for room in rooms:
Expand Down

0 comments on commit 4a030d2

Please sign in to comment.