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
|
||||
|
||||
|
|
|
@ -365,10 +365,10 @@ namespace libtorrent
|
|||
|
||||
if (c == 0) continue;
|
||||
if (c->is_choked()) continue;
|
||||
if (c->is_disconnecting()) continue;
|
||||
#ifndef NDEBUG
|
||||
unchoked_counter--;
|
||||
#endif
|
||||
if (c->is_disconnecting()) continue;
|
||||
// if the peer isn't interested, just choke it
|
||||
if (!c->is_peer_interested())
|
||||
return &(*i);
|
||||
|
|
Loading…
Reference in New Issue