From 27b46d15cceb0252d3d4496bafde0499dd3ba437 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Wed, 27 Jun 2018 01:41:55 +0300 Subject: [PATCH] fix message on downloading --- src/background/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) })