mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
style
This commit is contained in:
parent
ebb86f728f
commit
a6f14037ff
@ -305,7 +305,7 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
|
||||
|
||||
socket.on('message', function (msg) {
|
||||
if (msg.length < 8 || msg.readUInt32BE(4) !== transactionId.readUInt32BE(0)) {
|
||||
return error('tracker sent back invalid transaction id')
|
||||
return error('tracker sent invalid transaction id')
|
||||
}
|
||||
|
||||
var action = msg.readUInt32BE(0)
|
||||
@ -374,6 +374,10 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
|
||||
}
|
||||
self.client.emit('error', new Error(msg.slice(8).toString()))
|
||||
break
|
||||
|
||||
default:
|
||||
error('tracker sent invalid action')
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user