Add extra data on ws annouce event

This commit is contained in:
Yoann Ciabaud 2017-02-24 18:08:44 +01:00
parent 1efb832dd7
commit 8482c3af0a

View File

@ -266,11 +266,8 @@ WebSocketTracker.prototype._onAnnounceResponse = function (data) {
}
if (data.complete != null) {
self.client.emit('update', {
announce: self.announceUrl,
complete: data.complete,
incomplete: data.incomplete
})
data.announce = self.announceUrl
self.client.emit('update', data)
}
var peer