forked from premiere/premiere-libtorrent
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 == 0) continue;
|
||||||
if (c->is_choked()) continue;
|
if (c->is_choked()) continue;
|
||||||
|
if (c->is_disconnecting()) continue;
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
unchoked_counter--;
|
unchoked_counter--;
|
||||||
#endif
|
#endif
|
||||||
|
@ -527,6 +528,7 @@ namespace libtorrent
|
||||||
if (c == 0) continue;
|
if (c == 0) continue;
|
||||||
|
|
||||||
if (c->is_choked()) continue;
|
if (c->is_choked()) continue;
|
||||||
|
if (c->is_disconnecting()) continue;
|
||||||
|
|
||||||
size_type share_diff = c->share_diff();
|
size_type share_diff = c->share_diff();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue