Browse Source

Fix synchronization issue in SocketIO (#213)

pull/221/head
Anthony Zhang 6 years ago
committed by Miguel Grinberg
parent
commit
4a030d2f9c
  1. 2
      socketio/base_manager.py

2
socketio/base_manager.py

@ -71,7 +71,7 @@ class BaseManager(object):
if namespace not in self.rooms: if namespace not in self.rooms:
return return
rooms = [] 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: if sid in room:
rooms.append(room_name) rooms.append(room_name)
for room in rooms: for room in rooms:

Loading…
Cancel
Save