mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 03:16:24 +00:00
don't reply to http requests after server has stopped listening
This commit is contained in:
parent
da0382a435
commit
efa15629dd
@ -183,6 +183,7 @@ Server.prototype.onHttpRequest = function (req, res, opts) {
|
|||||||
'failure reason': err.message
|
'failure reason': err.message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!self.listening) return
|
||||||
|
|
||||||
delete response.action // only needed for UDP encoding
|
delete response.action // only needed for UDP encoding
|
||||||
res.end(bencode.encode(response))
|
res.end(bencode.encode(response))
|
||||||
|
Loading…
Reference in New Issue
Block a user