metadata extension fix

This commit is contained in:
Arvid Norberg
2012-08-09 22:30:45 +00:00
parent 0685fb91bd
commit 9a11c44984
2 changed files with 7 additions and 4 deletions

View File

@@ -424,7 +424,7 @@ namespace libtorrent { namespace
bool has_metadata() const
{
return time_now() > m_request_limit;
return m_pc.has_metadata() || (time_now() > m_request_limit);
}
void failed_hash_check(ptime const& now)