diff --git a/server.js b/server.js index 378e906..c4fd648 100644 --- a/server.js +++ b/server.js @@ -610,6 +610,7 @@ Server.prototype._onWebSocketClose = function (socket) { var swarm = self.torrents[infoHash] if (swarm) { swarm.announce({ + type: 'ws', event: 'stopped', numwant: 0, peer_id: socket.peerId