From 4a030d2f9c812b2dd0237883b072189feccac9b7 Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Fri, 9 Nov 2018 11:19:38 -0500 Subject: [PATCH] Fix synchronization issue in SocketIO (#213) --- socketio/base_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: