From ace446a27db2d7c6ce26584ef0bd5c5caa01e668 Mon Sep 17 00:00:00 2001 From: hossein Date: Sun, 25 Feb 2024 14:20:34 +0330 Subject: [PATCH] clean --- src/node/handler/PadMessageHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/handler/PadMessageHandler.ts b/src/node/handler/PadMessageHandler.ts index 1d7a4dd21..221af33d2 100644 --- a/src/node/handler/PadMessageHandler.ts +++ b/src/node/handler/PadMessageHandler.ts @@ -1251,7 +1251,7 @@ const _getRoomSockets = (padID: string) => { // it does here, but synchronously to avoid a race condition. This code will have to change when // we update to socket.io v3. const room = ns.adapter.rooms?.get(padID); - + if (!room) return []; return Array.from(room)