diff --git a/negotiation.py b/negotiation.py index 22cc1ca..3dcfecf 100755 --- a/negotiation.py +++ b/negotiation.py @@ -115,8 +115,11 @@ def handle_join_negotiation(json): def get_room_participants(room): if '/' not in socketio.server.manager.get_namespaces(): return [] - sessions = [s for s in socketio.server.manager.get_participants('/', room)] - participants = [p for s,p in session_map.items() if s in sessions] + try: + sessions = [s for s in socketio.server.manager.get_participants('/', room)] + participants = [p for s,p in session_map.items() if s in sessions] + except: + return [] app.logger.debug(participants) return participants