Fixed not selecting files sometimes.
This commit is contained in:
parent
5234f6cad3
commit
5d73ae140e
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue