fix bug in last-seen-complete (#1234)

This commit is contained in:
Arvid Norberg 2016-10-20 00:15:26 -04:00 committed by GitHub
parent fe754453f4
commit 5012fcf10b
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* fix bug in last-seen-complete
* remove file size limit in torrent_info filename constructor
* fix tail-padding for last file in create_torrent
* don't send user-agent in metadata http downloads or UPnP requests when

View File

@ -1861,7 +1861,7 @@ namespace libtorrent
// there should be a version too
// but where do we put that info?
int last_seen_complete = boost::uint8_t(root.dict_find_int_value("complete_ago", -1));
int const last_seen_complete = root.dict_find_int_value("complete_ago", -1);
if (last_seen_complete >= 0) set_last_seen_complete(last_seen_complete);
std::string client_info = root.dict_find_string_value("v");