From: Charles Kerr Date: Sat, 2 Feb 2019 03:59:17 +0000 (-0600) Subject: fix: update the resume file before running scripts X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08f5a0fdaa0de9cf6658be5bb720bdc28c1e59ed;p=transmission fix: update the resume file before running scripts This is useful if the client script is going to access the .resume file. Ensuring an up-to-date .resume file means that user scripts will be able to access it. --- diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 23a0e9b22..3ebaa665c 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -2328,6 +2328,8 @@ void tr_torrentRecheckCompleteness(tr_torrent* tor) if (tr_sessionIsTorrentDoneScriptEnabled(tor->session)) { + tr_torrentSave(tor); + torrentCallScript(tor, tr_sessionGetTorrentDoneScript(tor->session)); } }