Changeset 5931


Ignore:
Timestamp:
May 25, 2008, 5:34:02 PM (14 years ago)
Author:
livings124
Message:

a little work with rpc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r5908 r5931  
    829829    if (add)
    830830    {
    831         [torrent setOrderValue: [fTorrents count]-1]; //ensure that queue order is always sequential
     831        [torrent setOrderValue: [fTorrents count]]; //ensure that queue order is always sequential
    832832       
    833833        [torrent update];
     
    41484148- (void) rpcCallback: (tr_rpc_callback_type) type forTorrentStruct: (struct tr_torrent *) torrentStruct
    41494149{
     4150    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     4151   
    41504152    //get the torrent
    4151     if (torrentStruct != NULL)
     4153    if (torrentStruct != NULL && type != TR_RPC_TORRENT_ADDED)
    41524154    {
    41534155        NSEnumerator * enumerator = [fTorrents objectEnumerator];
     
    41794181            break;
    41804182    }
     4183   
     4184    [pool release];
    41814185}
    41824186
Note: See TracChangeset for help on using the changeset viewer.