diff --git a/server/RdtClient.Service/Services/TorrentRunner.cs b/server/RdtClient.Service/Services/TorrentRunner.cs index edec4c5..333745d 100644 --- a/server/RdtClient.Service/Services/TorrentRunner.cs +++ b/server/RdtClient.Service/Services/TorrentRunner.cs @@ -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 {