Changeset 8341


Ignore:
Timestamp:
May 6, 2009, 1:42:13 AM (12 years ago)
Author:
livings124
Message:

set torrents to sleep in the sleep-callback thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r8156 r8341  
    37143714                {
    37153715                    //stop all transfers (since some are active) before going to sleep and remember to resume when we wake up
    3716                     [fTorrents makeObjectsPerformSelector: @selector(sleep)];
     3716                    for (Torrent * torrent in fTorrents)
     3717                        [torrent sleep];
    37173718                    sleep(15);
    37183719                    break;
     
    37393740        case kIOMessageSystemHasPoweredOn:
    37403741            //resume sleeping transfers after we wake up
    3741             [fTorrents makeObjectsPerformSelector: @selector(wakeUp)];
     3742            for (Torrent * torrent in fTorrents)
     3743                [torrent wakeUp];
    37423744            #warning check speed limit timer?
    37433745            //[self autoSpeedLimitChange: nil];
Note: See TracChangeset for help on using the changeset viewer.