mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
parent
1ec4eaa273
commit
da0382a435
@ -219,7 +219,12 @@ Server.prototype.onUdpRequest = function (msg, rinfo) {
|
||||
response.connectionId = params.connectionId
|
||||
|
||||
var buf = makeUdpPacket(response)
|
||||
self.udp.send(buf, 0, buf.length, rinfo.port, rinfo.address)
|
||||
|
||||
try {
|
||||
self.udp.send(buf, 0, buf.length, rinfo.port, rinfo.address)
|
||||
} catch (err) {
|
||||
self.emit('warning', err)
|
||||
}
|
||||
|
||||
if (params.action === common.ACTIONS.ANNOUNCE) {
|
||||
self.emit(common.EVENT_NAMES[params.event], params.addr)
|
||||
|
Loading…
Reference in New Issue
Block a user