From 2f099e610318b6ab85dacbb64052d8bb173cb181 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 27 May 2010 16:20:08 +0000 Subject: [PATCH] fix open_listen_port call order --- 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 b1a0ffbe4..b4834a438 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -531,8 +531,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 @@ -745,6 +743,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))); }