forked from premiere/premiere-libtorrent
may have fixed an incorrect assert + added ending newline in a file that didn't have one
This commit is contained in:
parent
b80c8720e3
commit
364abbefb7
|
@ -60,3 +60,4 @@ namespace libtorrent
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TORRENT_PEER_HPP_INCLUDED
|
#endif // TORRENT_PEER_HPP_INCLUDED
|
||||||
|
|
||||||
|
|
|
@ -365,10 +365,10 @@ 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
|
||||||
|
if (c->is_disconnecting()) continue;
|
||||||
// if the peer isn't interested, just choke it
|
// if the peer isn't interested, just choke it
|
||||||
if (!c->is_peer_interested())
|
if (!c->is_peer_interested())
|
||||||
return &(*i);
|
return &(*i);
|
||||||
|
|
Loading…
Reference in New Issue