Timothy Jaeryang Baek hai 2 meses
pai
achega
6bd2bc5683
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/routes/+layout.svelte

+ 3 - 0
src/routes/+layout.svelte

@@ -462,6 +462,9 @@
 
 				$socket?.on('chat-events', chatEventHandler);
 				$socket?.on('channel-events', channelEventHandler);
+			} else {
+				$socket?.off('chat-events', chatEventHandler);
+				$socket?.off('channel-events', channelEventHandler);
 			}
 		});