policy invariant check update

This commit is contained in:
Arvid Norberg 2008-04-07 03:23:54 +00:00
parent 96f6de9d10
commit 507b812ae8
1 changed files with 2 additions and 0 deletions

View File

@ -1271,6 +1271,8 @@ namespace libtorrent
{
continue;
}
TORRENT_ASSERT(p.prev_amount_upload == 0);
TORRENT_ASSERT(p.prev_amount_download == 0);
if (p.optimistically_unchoked)
{
TORRENT_ASSERT(p.connection);