From 54bd1a41b00142d5f8e98186ac1a5bdf3dabb190 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 1 Apr 2008 19:17:09 +0000 Subject: [PATCH] fix to recent change to move out references to self() from peer_connection constructors --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 44c21aed7..97f1a8d4a 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2047,7 +2047,6 @@ namespace libtorrent #ifndef NDEBUG c->m_in_constructor = false; #endif - c->start(); #ifndef TORRENT_DISABLE_EXTENSIONS for (extension_list_t::iterator i = m_extensions.begin() @@ -2063,6 +2062,7 @@ namespace libtorrent // add the newly connected peer to this torrent's peer list m_connections.insert(boost::get_pointer(c)); m_ses.m_connections.insert(c); + c->start(); m_ses.m_half_open.enqueue( bind(&peer_connection::connect, c, _1)