fixed assert when choking disconnecting peers
This commit is contained in:
parent
8ef7f58d16
commit
201793bc51
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue