From 364abbefb72bc845bba602f784913f94787c9fe0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 3 Oct 2005 23:09:22 +0000 Subject: [PATCH] may have fixed an incorrect assert + added ending newline in a file that didn't have one --- include/libtorrent/peer.hpp | 1 + src/policy.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);