Changeset 14234


Ignore:
Timestamp:
Jan 19, 2014, 5:03:27 AM (7 years ago)
Author:
jordan
Message:

(trunk, libT) #4089: 'magnet download not verified for existing data' -- patch by cfpp2p

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent-magnet.c

    r14225 r14234  
    300300          incompleteMetadataFree (tor->incompleteMetadata);
    301301          tor->incompleteMetadata = NULL;
     302          tor->isStopping = true;
     303          tor->magnetVerify = true;
     304          tor->startAfterVerify = true;
    302305        }
    303306        else /* drat. */
  • trunk/libtransmission/torrent.c

    r14225 r14234  
    18741874
    18751875  tr_torrentUnlock (tor);
     1876
     1877  if (tor->magnetVerify)
     1878    {
     1879      tor->magnetVerify = false;
     1880      tr_logAddTorInfo (tor, "%s", "Magnet Verify");
     1881      refreshCurrentDir (tor);
     1882      tr_torrentVerify (tor, NULL, NULL);
     1883    }
    18761884}
    18771885
     
    19081916  tr_logAddTorInfo (tor, "%s", _("Removing torrent"));
    19091917
     1918  tor->magnetVerify = false;
    19101919  stopTorrent (tor);
    19111920
  • trunk/libtransmission/torrent.h

    r14225 r14234  
    247247    bool                       isDirty;
    248248    bool                       isQueued;
     249
     250    bool                       magnetVerify;
    249251
    250252    bool                       infoDictOffsetIsCached;
Note: See TracChangeset for help on using the changeset viewer.