diff --git a/socketio/base_manager.py b/socketio/base_manager.py index b4bcf5f..f8aa998 100644 --- a/socketio/base_manager.py +++ b/socketio/base_manager.py @@ -71,7 +71,7 @@ class BaseManager(object): 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: