Ignore:
Timestamp:
Jul 15, 2013, 11:53:48 PM (9 years ago)
Author:
jordan
Message:

change the callback functions' orders s.t. torrent-completed is called before torrent-done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r14108 r14123  
    21652165          if (tor->currentDir == tor->incompleteDir)
    21662166            tr_torrentSetLocation (tor, tor->downloadDir, true, NULL, NULL);
    2167 
     2167       }
     2168
     2169      fireCompletenessChange (tor, completeness, wasRunning);
     2170
     2171      if (tr_torrentIsSeed (tor))
     2172        {
    21682173          if (tr_sessionIsTorrentDoneScriptEnabled (tor->session))
    21692174            torrentCallScript (tor, tr_sessionGetTorrentDoneScript (tor->session));
    21702175        }
    2171 
    2172 
    2173       fireCompletenessChange (tor, completeness, wasRunning);
    21742176
    21752177      tr_torrentSetDirty (tor);
Note: See TracChangeset for help on using the changeset viewer.