update_interest fix for torrents without metadata

This commit is contained in:
Arvid Norberg 2008-09-19 07:14:24 +00:00
parent fbec4261cd
commit eb89269b6a
1 changed files with 1 additions and 0 deletions

View File

@ -341,6 +341,7 @@ namespace libtorrent
// have not been initialized yet. The interested // have not been initialized yet. The interested
// flag will be updated once they are. // flag will be updated once they are.
if (m_have_piece.size() == 0) return; if (m_have_piece.size() == 0) return;
if (!t->ready_for_connections()) return;
bool interested = false; bool interested = false;
if (!t->is_finished()) if (!t->is_finished())