diff --git a/src/policy.cpp b/src/policy.cpp index e59a2c98f..3e7b7585b 100644 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -904,6 +904,8 @@ namespace libtorrent // || (iter != m_peers.end() && c.remote().address() < (*iter)->address()) // || (iter != m_peers.end() && iter != m_peers.begin() && (*(iter-1))->address() < c.remote().address())); + aux::session_impl& ses = m_torrent->session(); + if (found) { i = *iter; diff --git a/test/Makefile.am b/test/Makefile.am index d7f37f68b..d5a3d7b32 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -51,6 +51,7 @@ test_bdecode_performance_SOURCES = test_bdecode_performance.cpp test_dht_SOURCES = test_dht.cpp test_bencoding_SOURCES = test_bencoding.cpp test_buffer_SOURCES = test_buffer.cpp +test_checking_SOURCES = test_checking.cpp test_fast_extension_SOURCES = test_fast_extension.cpp test_hasher_SOURCES = test_hasher.cpp test_http_connection_SOURCES = test_http_connection.cpp