We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b269fb9 commit df8de6fCopy full SHA for df8de6f
lib/websocket-tracker.js
@@ -86,7 +86,9 @@ WebSocketTracker.prototype._onSocketMessage = function (data) {
86
return self.client.emit('warning', new Error('Invalid tracker response'))
87
}
88
89
- if (data.info_hash !== self.client._infoHash.toString('binary')) return
+ if (data.info_hash !== self.client._infoHash.toString('binary')) {
90
+ return self.client.emit('warning', new Error('Invalid tracker response'))
91
+ }
92
93
debug('received %s from %s', JSON.stringify(data), self._announceUrl)
94
0 commit comments