Ticket #5092: q_annc_fix.diff

File q_annc_fix.diff, 620 bytes (added by cfpp2p, 9 years ago)

the quick and dirty fix

  • J:/!/uTP&OtherFixes101512/Queued_Announce-FIXed/svn/torrent.c

    old new  
    17731773    tr_torrentLock( tor );
    17741774
    17751775    tr_verifyRemove( tor );
     1776    const bool wasQueued = tr_torrentIsQueued( tor );
    17761777    torrentSetQueued( tor, false );
    17771778    tr_peerMgrStopTorrent( tor );
    1778     tr_announcerTorrentStopped( tor );
     1779
     1780    if( !wasQueued )
     1781        tr_announcerTorrentStopped( tor );
     1782
    17791783    tr_cacheFlushTorrent( tor->session->cache, tor );
    17801784
    17811785    tr_fdTorrentClose( tor->session, tor->uniqueId );