From 97511f28193f7c4bbb496a9d36c757f842f3c22c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 14 Jan 2008 17:25:08 +0000 Subject: [PATCH] removed stray space --- include/libtorrent/kademlia/rpc_manager.hpp | 2 +- src/kademlia/rpc_manager.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/kademlia/rpc_manager.hpp b/include/libtorrent/kademlia/rpc_manager.hpp index f0c4f7191..ffcc90b5b 100644 --- a/include/libtorrent/kademlia/rpc_manager.hpp +++ b/include/libtorrent/kademlia/rpc_manager.hpp @@ -114,7 +114,7 @@ private: typedef boost::array transactions_t; transactions_t m_transactions; - std::vector m_aborted_transactions; + std::vector m_aborted_transactions; // this is the next transaction id to be used int m_next_transaction_id; diff --git a/src/kademlia/rpc_manager.cpp b/src/kademlia/rpc_manager.cpp index 81a384660..c0c1c787e 100644 --- a/src/kademlia/rpc_manager.cpp +++ b/src/kademlia/rpc_manager.cpp @@ -121,6 +121,7 @@ rpc_manager::rpc_manager(fun const& f, node_id const& our_id rpc_manager::~rpc_manager() { + TORRENT_ASSERT(!m_destructing); m_destructing = true; #ifdef TORRENT_DHT_VERBOSE_LOGGING TORRENT_LOG(rpc) << "Destructing"; @@ -308,7 +309,7 @@ time_duration rpc_manager::tick() // clear the aborted transactions, will likely // generate new requests. We need to swap, since the // destrutors may add more observers to the m_aborted_transactions - std::vector().swap(m_aborted_transactions); + std::vector().swap(m_aborted_transactions); return milliseconds(timeout_ms); }