fix(trackers): fix updating trackers on page open

This commit is contained in:
Alexey Kasyanchuk
2018-08-16 07:26:17 +03:00
parent 1d76939e26
commit 34981c3609
3 changed files with 27 additions and 6 deletions

View File

@ -25,6 +25,7 @@ module.exports = async ({
setupTorrentRecord,
p2pStore,
feed,
updateTorrentTrackers,
remoteTrackers
}) => {
let torrentClientHashMap = {}
@ -515,7 +516,9 @@ module.exports = async ({
if(hash.length != 40)
return;
logT('tracker', 'recheck trackers for', hash)
updateTorrentTrackers(hash);
remoteTrackers.update({hash, name: hash})
});
const topTorrentsCall = (type, navigation = {}, callback) => {