fixed bug in read_fast_resume regarding auto_managed flag

This commit is contained in:
Arvid Norberg 2008-09-23 03:21:35 +00:00
parent eaa071818e
commit c0c65d8ee6
1 changed files with 2 additions and 1 deletions

View File

@ -2520,7 +2520,8 @@ namespace libtorrent
m_picker->set_piece_priority(i, p[i]);
}
if (rd.dict_find_int_value("auto_managed")) auto_managed(true);
int auto_managed_ = rd.dict_find_int_value("auto_managed", -1);
if (auto_managed_ != -1) auto_managed(auto_managed_);
if (rd.dict_find_int_value("paused")) pause();
lazy_entry const* trackers = rd.dict_find_list("trackers");