may have fixed an incorrect assert + added ending newline in a file that didn't have one

This commit is contained in:
Arvid Norberg 2005-10-03 23:09:22 +00:00
parent b80c8720e3
commit 364abbefb7
2 changed files with 2 additions and 1 deletions

View File

@ -60,3 +60,4 @@ namespace libtorrent
} }
#endif // TORRENT_PEER_HPP_INCLUDED #endif // TORRENT_PEER_HPP_INCLUDED

View File

@ -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);