Ignore:
Timestamp:
Sep 27, 2007, 12:44:25 PM (15 years ago)
Author:
livings124
Message:

patch from beelsebob to fix crash with connected peers with no client name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r3192 r3202  
    971971
    972972- (float) progressLeft
    973 {
    974     return (float)fStat->leftUntilDone/[self size];
     973{//NSLog(@"left %f",(float)fStat->leftUntilDone / [self size]);
     974    return (float)fStat->leftUntilDone / [self size];
    975975}
    976976
     
    979979    return fStat->eta;
    980980}
     981
     982/*- (float) notAvailableDesired
     983{NSLog(@"not available %f", (float)(fStat->desiredSize - fStat->desiredAvailable) / [self size]);
     984    return (float)(fStat->desiredSize - fStat->desiredAvailable) / [self size];
     985}*/
    981986
    982987- (BOOL) isActive
     
    10571062           
    10581063            [dic setObject: [NSNumber numberWithBool: peer->isEncrypted] forKey: @"Encryption"];
    1059            
     1064        }
     1065       
     1066        #warning why would connected clients have null value?
     1067        if (peer->client)
    10601068            [dic setObject: [NSString stringWithCString: (char *) peer->client encoding: NSUTF8StringEncoding] forKey: @"Client"];
    1061         }
    10621069        else
    10631070            [dic setObject: @"" forKey: @"Client"]; //needed to be set here for client sort
Note: See TracChangeset for help on using the changeset viewer.