From 507b812ae8f9e4629d62e2d962d767be0b7e525d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 7 Apr 2008 03:23:54 +0000 Subject: [PATCH] policy invariant check update --- src/policy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/policy.cpp b/src/policy.cpp index 3df537bb1..ddac0715b 100755 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -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);