mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
if server.close() is called, end http response object
This commit is contained in:
parent
c0f84f9610
commit
d29367a4a0
@ -221,7 +221,7 @@ Server.prototype.onHttpRequest = function (req, res, opts) {
|
|||||||
'failure reason': err.message
|
'failure reason': err.message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (self.destroyed) return
|
if (self.destroyed) return res.end()
|
||||||
|
|
||||||
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