Changeset 14208


Ignore:
Timestamp:
Oct 20, 2013, 5:15:19 PM (8 years ago)
Author:
jordan
Message:

(trunk, libT) #5427 'torrents start in pause' -- fix resume issue with que_restart_v2 patch by cfpp2p

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/resume.c

    r14203 r14208  
    676676  tr_variantDictAddInt (&top, TR_KEY_max_peers, tor->maxConnectedPeers);
    677677  tr_variantDictAddInt (&top, TR_KEY_bandwidth_priority, tr_torrentGetPriority (tor));
    678   tr_variantDictAddBool (&top, TR_KEY_paused, !tor->isRunning);
     678  tr_variantDictAddBool (&top, TR_KEY_paused, !tor->isRunning && !tor->isQueued);
    679679  savePeers (&top, tor);
    680680  if (tr_torrentHasMetadata (tor))
     
    779779      && tr_variantDictFindBool (&top, TR_KEY_paused, &boolVal))
    780780    {
    781       tor->isRunning = !boolVal && !tor->isQueued;
     781      tor->isRunning = !boolVal;
    782782      fieldsLoaded |= TR_FR_RUN;
    783783    }
  • trunk/libtransmission/torrent.c

    r14203 r14208  
    18651865
    18661866  tr_verifyRemove (tor);
    1867   torrentSetQueued (tor, false);
    18681867  tr_peerMgrStopTorrent (tor);
    18691868  tr_announcerTorrentStopped (tor);
     
    18741873  if (!tor->isDeleting)
    18751874    tr_torrentSave (tor);
     1875
     1876  torrentSetQueued (tor, false);
    18761877
    18771878  tr_torrentUnlock (tor);
     
    35443545      tor->isQueued = queued;
    35453546      tor->anyDate = tr_time ();
     3547      tr_torrentSetDirty (tor);
    35463548    }
    35473549}
Note: See TracChangeset for help on using the changeset viewer.