*need to use socket destroy

This commit is contained in:
Derrick Hammer 2023-02-16 01:02:00 -05:00
parent 035be11686
commit 47c93b1f1a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export default class Peer {
self._socket.emit("data", m);
},
async onclose() {
self._socket?.end();
self._socket?.destroy();
await self._onclose?.(self._socket);
},
});