fix to recent change to move out references to self() from peer_connection constructors

This commit is contained in:
Arvid Norberg 2008-04-01 19:17:09 +00:00
parent 4161be867e
commit 54bd1a41b0
1 changed files with 1 additions and 1 deletions

View File

@ -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)