Changeset 3689


Ignore:
Timestamp:
Nov 2, 2007, 3:13:44 AM (14 years ago)
Author:
livings124
Message:

stop timers and notification checking on quit right away

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3687 r3689  
    589589   
    590590    //wait for running transfers to stop and for NAT to be disabled (5 second timeout)
    591     NSDate * start = [NSDate date];
     591    NSDate * startDate = [NSDate date];
    592592   
    593593    tr_close(fLib);
    594594   
    595     while ([start timeIntervalSinceNow] >= -5.0 && tr_handleStatus(fLib)->natTraversalStatus != TR_NAT_TRAVERSAL_DISABLED)
     595    while ([startDate timeIntervalSinceNow] >= -5.0 && tr_handleStatus(fLib)->natTraversalStatus != TR_NAT_TRAVERSAL_DISABLED)
    596596        usleep(100000);
    597597   
  • trunk/macosx/PrefsController.m

    r3646 r3689  
    7474       
    7575        //set bind port
    76         int bindPort = [fDefaults integerForKey: @"BindPort"];
    77         tr_setBindPort(fHandle, bindPort);
     76        tr_setBindPort(fHandle, [fDefaults integerForKey: @"BindPort"]);
    7877       
    7978        //set NAT
Note: See TracChangeset for help on using the changeset viewer.