diff --git a/src/background/api.js b/src/background/api.js index 49cd749..bf9eabf 100644 --- a/src/background/api.js +++ b/src/background/api.js @@ -589,7 +589,7 @@ module.exports = async ({ torrentClientHashMap[torrent.infoHash] = magnet torrent.torrentObject = torrentObject - torrent.on('torrent', () => { + torrent.on('ready', () => { console.log('start downloading', torrent.infoHash) send('downloading', torrent.infoHash) })