right, the session thread actually has to start before upnp and natpmp can be started, since they are synchronous

This commit is contained in:
Arvid Norberg 2010-12-05 21:08:19 +00:00
parent 779014ddac
commit db0728e0cf
1 changed files with 3 additions and 2 deletions

View File

@ -333,6 +333,9 @@ namespace libtorrent
add_extension(create_smart_ban_plugin);
}
#endif
m_impl->start_session();
if (flags & start_default_features)
{
start_upnp();
@ -342,8 +345,6 @@ namespace libtorrent
#endif
start_lsd();
}
m_impl->start_session();
}
session::~session()