Skip to content

Commit 4a030d2

Browse files
Uberimiguelgrinberg
authored andcommitted
Fix synchronization issue in SocketIO (#213)
1 parent da7cb86 commit 4a030d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socketio/base_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def disconnect(self, sid, namespace):
7171
if namespace not in self.rooms:
7272
return
7373
rooms = []
74-
for room_name, room in six.iteritems(self.rooms[namespace]):
74+
for room_name, room in six.iteritems(self.rooms[namespace].copy()):
7575
if sid in room:
7676
rooms.append(room_name)
7777
for room in rooms:

0 commit comments

Comments
 (0)