Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-06-16 01:37:29 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-06-16 01:37:29 +0300
commitbac83cdae1320478c4a28b6249ff0fd157b9294c (patch)
tree0c51a97aa8206a5fd92d398c0928dfd0c155fd57
parent064a5be160a1d575e15643a3551c8f1c1a186c05 (diff)
Emit 'seed' event on the torrent object
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index f5554c2..3402551 100644
--- a/index.js
+++ b/index.js
@@ -348,6 +348,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) {
function _onseed (torrent) {
debug('on seed')
if (typeof onseed === 'function') onseed(torrent)
+ torrent.emit('seed')
self.emit('seed', torrent)
}