*need to use socket destroy
This commit is contained in:
parent
035be11686
commit
47c93b1f1a
|
@ -90,7 +90,7 @@ export default class Peer {
|
||||||
self._socket.emit("data", m);
|
self._socket.emit("data", m);
|
||||||
},
|
},
|
||||||
async onclose() {
|
async onclose() {
|
||||||
self._socket?.end();
|
self._socket?.destroy();
|
||||||
await self._onclose?.(self._socket);
|
await self._onclose?.(self._socket);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue