completed event should always have complete download length

This commit is contained in:
Feross Aboukhadijeh 2014-03-26 01:37:07 -07:00
parent 858b308f86
commit 1e171ce047

View File

@ -54,6 +54,7 @@ Client.prototype.complete = function (opts) {
var self = this
opts = opts || {}
opts.event = 'completed'
opts.downloaded = self._torrentLength
self._request(opts)
}