fix bitfield assert

This commit is contained in:
Arvid Norberg 2007-12-22 19:10:38 +00:00
parent 91ecbb4b23
commit 44735a425f
1 changed files with 3 additions and 0 deletions

View File

@ -1342,6 +1342,9 @@ namespace libtorrent
else if (t->num_pieces() == 0)
{
// don't send a bitfield if we don't have any pieces
#ifndef NDEBUG
m_sent_bitfield = true;
#endif
return;
}