Timothy Jaeryang Baek 2 달 전
부모
커밋
6bd2bc5683
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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);
 			}
 		});