From 6a5806bfd24579dab00add0c6281a13e8a333fb0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 1 Jun 2010 02:04:00 +0000 Subject: [PATCH] re-fixed the open_listen_port() issue --- src/session_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 9af7e7e74..e25a7636d 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -532,8 +532,6 @@ namespace aux { (*m_logger) << time_now_string() << "\n"; #endif - open_listen_port(); - #ifndef TORRENT_DISABLE_DHT m_next_dht_torrent = m_torrents.begin(); #endif @@ -746,6 +744,8 @@ namespace aux { boost::bind(&session_impl::on_dht_announce, this, _1)); #endif + open_listen_port(); + m_thread.reset(new thread(boost::bind(&session_impl::main_thread, this))); }