fixed assert when choking disconnecting peers

This commit is contained in:
Arvid Norberg 2005-09-29 08:56:13 +00:00
parent 8ef7f58d16
commit 201793bc51
1 changed files with 2 additions and 0 deletions

View File

@ -365,6 +365,7 @@ namespace libtorrent
if (c == 0) continue;
if (c->is_choked()) continue;
if (c->is_disconnecting()) continue;
#ifndef NDEBUG
unchoked_counter--;
#endif
@ -527,6 +528,7 @@ namespace libtorrent
if (c == 0) continue;
if (c->is_choked()) continue;
if (c->is_disconnecting()) continue;
size_type share_diff = c->share_diff();