Changeset 772 for trunk/macosx


Ignore:
Timestamp:
Aug 14, 2006, 10:27:34 PM (16 years ago)
Author:
livings124
Message:

Lock and unlock while accessing peers in libtransmission.
Handle lack of client id in clients.h rather than the gui.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r771 r772  
    527527    {
    528528        peer = peers[i];
    529    
    530         client = [NSString stringWithCString: (char *) peer.client encoding: NSUTF8StringEncoding];
    531         //get rid of strange returned client strings
    532         if ([client hasPrefix: @"unknown client ("] && ![client hasSuffix: @")"])
    533             client = @"unknown client";
    534    
     529       
    535530        [peerDics addObject: [NSDictionary dictionaryWithObjectsAndKeys:
    536             client, @"Client",
     531            [NSString stringWithCString: (char *) peer.client encoding: NSUTF8StringEncoding], @"Client",
    537532            [NSNumber numberWithBool: peer.isDownloading], @"UL To",
    538533            [NSNumber numberWithBool: peer.isUploading], @"DL From", nil]];
Note: See TracChangeset for help on using the changeset viewer.