From bac83cdae1320478c4a28b6249ff0fd157b9294c Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 15 Jun 2016 15:37:29 -0700 Subject: Emit 'seed' event on the torrent object --- index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'index.js') 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) } -- cgit v1.2.3