#3840 LPD does not initiate on startup

This commit is contained in:
Mitchell Livingston 2010-08-03 23:54:02 +00:00
parent 5624840ac4
commit 20432d933e
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
tr_bencDictAddStr(&settings, TR_PREFS_KEY_INCOMPLETE_DIR, [[[fDefaults stringForKey: @"IncompleteDownloadFolder"]
stringByExpandingTildeInPath] UTF8String]);
tr_bencDictAddBool(&settings, TR_PREFS_KEY_INCOMPLETE_DIR_ENABLED, [fDefaults boolForKey: @"UseIncompleteDownloadFolder"]);
tr_bencDictAddBool(&settings, TR_PREFS_KEY_LPD_ENABLED, [fDefaults boolForKey: @"LocalPeerDiscoveryGlobal"]);
tr_bencDictAddInt(&settings, TR_PREFS_KEY_MSGLEVEL, TR_MSG_DBG);
tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_LIMIT_GLOBAL, [fDefaults integerForKey: @"PeersTotal"]);
tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_LIMIT_TORRENT, [fDefaults integerForKey: @"PeersTorrent"]);

View File

@ -1171,7 +1171,7 @@ tr_session * fHandle;
//dht
const BOOL lpd = tr_sessionIsLPDEnabled(fHandle);
[fDefaults setBool: lpd forKey: @"LocalPeerDiscovery"];
[fDefaults setBool: lpd forKey: @"LocalPeerDiscoveryGlobal"];
//auto start
const BOOL autoStart = !tr_sessionGetPaused(fHandle);