Don't disconnect from the websocket when updating the server object state

This commit is contained in:
Dane Everitt 2019-12-22 00:16:25 -08:00
parent 6966530165
commit 058f72c923
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -45,11 +45,6 @@ export default () => {
setInstance(socket);
})
.catch(error => console.error(error));
return () => {
socket && socket.close();
instance && instance!.removeAllListeners();
};
}, [ server ]);
return null;