Run the torrent complete before deleting the torrent.
This commit is contained in:
parent
95574847e9
commit
12eefa028b
1 changed files with 9 additions and 9 deletions
|
|
@ -530,6 +530,15 @@ public class TorrentRunner
|
|||
|
||||
await _torrents.UpdateComplete(torrent.TorrentId, null, DateTimeOffset.UtcNow, true);
|
||||
|
||||
try
|
||||
{
|
||||
await _torrents.RunTorrentComplete(torrent.TorrentId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex.Message, "Unable to run post process: {Message}", ex.Message);
|
||||
}
|
||||
|
||||
if (torrent.DownloadClient == Data.Enums.DownloadClient.Symlink)
|
||||
{
|
||||
torrent.FinishedAction = torrent.FinishedAction switch
|
||||
|
|
@ -566,15 +575,6 @@ public class TorrentRunner
|
|||
|
||||
break;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
await _torrents.RunTorrentComplete(torrent.TorrentId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex.Message, "Unable to run post process: {Message}", ex.Message);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue