mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 02:21:36 +00:00
Merge pull request #7 from mafintosh/patch-1
No logs and fixed req getting emitted as error
This commit is contained in:
commit
8bc3024067
4
index.js
4
index.js
@ -117,7 +117,7 @@ Client.prototype._request = function (opts) {
|
||||
})
|
||||
|
||||
req.on('error', function (err) {
|
||||
self.emit('error', req)
|
||||
self.emit('error', err)
|
||||
})
|
||||
})
|
||||
}
|
||||
@ -137,7 +137,7 @@ Client.prototype._handleResponse = function (data, announce) {
|
||||
|
||||
var warning = data['warning message']
|
||||
if (warning) {
|
||||
console.warn(warning)
|
||||
self.emit('warning', warning);
|
||||
}
|
||||
|
||||
var interval = data.interval || data['min interval']
|
||||
|
Loading…
Reference in New Issue
Block a user