Changeset 12635


Ignore:
Timestamp:
Aug 6, 2011, 3:31:19 PM (10 years ago)
Author:
livings124
Message:

Stop waiting transfers before stopping others. This way, for a group of transfers to be stopped, a waiting one won't start if an active one is stopped first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r12629 r12635  
    12341234- (void) stopTorrents: (NSArray *) torrents
    12351235{
    1236 #warning look into stopping all without starting any
    12371236    //don't want any of these starting then stopping
    1238     /*for (Torrent * torrent in torrents)
    1239         [torrent setWaitToStart: NO];*/
     1237    for (Torrent * torrent in torrents)
     1238         if ([torrent waitingToStart])
     1239             [torrent stopTransfer];
    12401240   
    12411241    for (Torrent * torrent in torrents)
     
    13341334    [selectedValues removeObjectsInArray: torrents];
    13351335   
    1336 #warning look into stopping all without starting any
    13371336    //don't want any of these starting then stopping
    1338     /*for (Torrent * torrent in torrents)
    1339         [torrent setWaitToStart: NO];*/
     1337    for (Torrent * torrent in torrents)
     1338        if ([torrent waitingToStart])
     1339            [torrent stopTransfer];
    13401340   
    13411341    [fTorrents removeObjectsInArray: torrents];
Note: See TracChangeset for help on using the changeset viewer.