Ignore:
Timestamp:
Jul 8, 2010, 8:26:24 PM (12 years ago)
Author:
charles
Message:

(trunk mac) possibly fix the won't-seed bug report by making sure the value of a bandwidth KB is defined before calling tr_sessionInit()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r10956 r10979  
    334334        tr_bencDictAddBool(&settings, TR_PREFS_KEY_RPC_WHITELIST_ENABLED,  [fDefaults boolForKey: @"RPCUseWhitelist"]);
    335335       
    336         fLib = tr_sessionInit("macosx", configDir, YES, &settings);
    337         tr_bencFree(&settings);
    338        
    339336        #warning localize and make consistent
    340337        tr_formatter_size_init(1024, "KB", "MB", "GB", "TB");
    341338        tr_formatter_speed_init(1024, "KB/s", "MB/s", "GB/s", "TB/s");
    342339        tr_formatter_mem_init(1024, "KB", "MB", "GB", "TB");
     340       
     341        fLib = tr_sessionInit("macosx", configDir, YES, &settings);
     342        tr_bencFree(&settings);
    343343       
    344344        [NSApp setDelegate: self];
Note: See TracChangeset for help on using the changeset viewer.