Skip to content

Commit efb81c2

Browse files
committed
fix: cleanup websocket connections
Removed by accident here: webtorrent@d079171044e0c1f84f9e 431b110358ad1ff2b20f#diff-78c12f5adc1848d13b1c6f07055d996eL602
1 parent 4902a99 commit efb81c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ Server.prototype._onWebSocketClose = function (socket) {
610610
var swarm = self.torrents[infoHash]
611611
if (swarm) {
612612
swarm.announce({
613+
type: 'ws',
613614
event: 'stopped',
614615
numwant: 0,
615616
peer_id: socket.peerId

0 commit comments

Comments
 (0)