Changeset 13627


Ignore:
Timestamp:
Dec 5, 2012, 10:56:45 PM (8 years ago)
Author:
jordan
Message:

(trunk, libT) #5146 'seeding complete callback called twice' -- fixed with patch from x190.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r13625 r13627  
    441441    assert (tr_isTorrent (tor));
    442442
    443     if (!tor->isRunning || !tr_torrentIsSeed (tor))
     443    if (!tor->isRunning || tor->isStopping || !tr_torrentIsSeed (tor))
    444444        return;
    445445
     
    20622062        tr_fdTorrentClose (tor->session, tor->uniqueId);
    20632063
     2064        fireCompletenessChange (tor, completeness, wasRunning);
     2065
    20642066        if (tr_torrentIsSeed (tor))
    20652067        {
     
    20852087                torrentCallScript (tor, tr_sessionGetTorrentDoneScript (tor->session));
    20862088        }
    2087 
    2088         fireCompletenessChange (tor, completeness, wasRunning);
    20892089
    20902090        tr_torrentSetDirty (tor);
Note: See TracChangeset for help on using the changeset viewer.