Ignore:
Timestamp:
Oct 28, 2007, 4:35:49 AM (15 years ago)
Author:
livings124
Message:

use "Downloads" folder as default folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3588 r3613  
    580580    //clear badge
    581581    [fBadger clearBadge];
    582 
     582   
    583583    //wait for running transfers to stop and for NAT to be disabled (5 second timeout)
    584584    NSDate * start = [NSDate date];
    585     while ([start timeIntervalSinceNow] >= -5.0
    586             && (tr_torrentCount(fLib) > 0 || tr_handleStatus(fLib)->natTraversalStatus != TR_NAT_TRAVERSAL_DISABLED))
     585   
     586    tr_close(fLib);
     587   
     588    while ([start timeIntervalSinceNow] >= -5.0 && tr_handleStatus(fLib)->natTraversalStatus != TR_NAT_TRAVERSAL_DISABLED)
    587589        usleep(100000);
    588590   
     
    604606    [fPendingTorrentDownloads release];
    605607    [fTempTorrentFiles release];
    606    
    607     tr_close(fLib);
    608608}
    609609
Note: See TracChangeset for help on using the changeset viewer.