Changeset 13880


Ignore:
Timestamp:
Jan 27, 2013, 6:02:52 AM (8 years ago)
Author:
jordan
Message:

#5146 'seeding complete callback called twice': revert r13627 due to issues described in https://trac.transmissionbt.com/ticket/5146#comment:15

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r13879 r13880  
    20292029  if (completeness != tor->completeness)
    20302030    {
    2031       const int recentChange = tor->downloadedCur != 0;
     2031      const bool recentChange = tor->downloadedCur != 0;
    20322032      const bool wasLeeching = !tr_torrentIsSeed (tor);
    20332033      const bool wasRunning = tor->isRunning;
     
    20352035      if (recentChange)
    20362036        tr_logAddTorInfo (tor, _("State changed from \"%1$s\" to \"%2$s\""),
    2037                    getCompletionString (tor->completeness),
    2038                    getCompletionString (completeness));
     2037                          getCompletionString (tor->completeness),
     2038                          getCompletionString (completeness));
    20392039
    20402040      tor->completeness = completeness;
    20412041      tr_fdTorrentClose (tor->session, tor->uniqueId);
    2042 
    2043       fireCompletenessChange (tor, completeness, wasRunning);
    20442042
    20452043      if (tr_torrentIsSeed (tor))
     
    20662064            torrentCallScript (tor, tr_sessionGetTorrentDoneScript (tor->session));
    20672065        }
     2066
     2067
     2068      fireCompletenessChange (tor, completeness, wasRunning);
    20682069
    20692070      tr_torrentSetDirty (tor);
Note: See TracChangeset for help on using the changeset viewer.