Fixed not selecting files sometimes.

This commit is contained in:
Roger Far 2020-04-18 15:10:59 -06:00
parent 5234f6cad3
commit 5d73ae140e

View file

@ -142,6 +142,12 @@ namespace RdtClient.Service.Services
var newTorrent = await _torrentData.Add(rdTorrent.Id, rdTorrent.Hash, false, false);
await GetById(newTorrent.TorrentId);
}
if (rdTorrent.Files == null)
{
var rdTorrent2 = await _rdtClient.GetTorrentInfoAsync(rdTorrent.Id);
await Update(torrent, rdTorrent2);
}
else
{
await Update(torrent, rdTorrent);