mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
change the callback functions' orders s.t. torrent-completed is called before torrent-done
This commit is contained in:
parent
2db09dad54
commit
768142fcac
1 changed files with 5 additions and 3 deletions
|
@ -2164,14 +2164,16 @@ tr_torrentRecheckCompleteness (tr_torrent * tor)
|
|||
|
||||
if (tor->currentDir == tor->incompleteDir)
|
||||
tr_torrentSetLocation (tor, tor->downloadDir, true, NULL, NULL);
|
||||
}
|
||||
|
||||
fireCompletenessChange (tor, completeness, wasRunning);
|
||||
|
||||
if (tr_torrentIsSeed (tor))
|
||||
{
|
||||
if (tr_sessionIsTorrentDoneScriptEnabled (tor->session))
|
||||
torrentCallScript (tor, tr_sessionGetTorrentDoneScript (tor->session));
|
||||
}
|
||||
|
||||
|
||||
fireCompletenessChange (tor, completeness, wasRunning);
|
||||
|
||||
tr_torrentSetDirty (tor);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue