diff --git a/include/libtorrent/peer.hpp b/include/libtorrent/peer.hpp index 1585c05cf..1e9cc7765 100755 --- a/include/libtorrent/peer.hpp +++ b/include/libtorrent/peer.hpp @@ -60,3 +60,4 @@ namespace libtorrent } #endif // TORRENT_PEER_HPP_INCLUDED + diff --git a/src/policy.cpp b/src/policy.cpp index 3be4bff8a..6f461a4ef 100755 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -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);