diff --git a/resources/scripts/components/server/WebsocketHandler.tsx b/resources/scripts/components/server/WebsocketHandler.tsx index 9e93a1838..930fb8894 100644 --- a/resources/scripts/components/server/WebsocketHandler.tsx +++ b/resources/scripts/components/server/WebsocketHandler.tsx @@ -45,11 +45,6 @@ export default () => { setInstance(socket); }) .catch(error => console.error(error)); - - return () => { - socket && socket.close(); - instance && instance!.removeAllListeners(); - }; }, [ server ]); return null;