fix: cleanup websocket connections

Removed by accident here:
https://github.com/feross/bittorrent-tracker/commit/d079171044e0c1f84f9e
431b110358ad1ff2b20f#diff-78c12f5adc1848d13b1c6f07055d996eL602
This commit is contained in:
Feross Aboukhadijeh 2016-03-18 22:48:59 -07:00
parent 4902a99260
commit efb81c29cc

View File

@ -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