attempt at fixing shutdown hang caused by connection_queue

This commit is contained in:
Arvid Norberg
2012-07-15 23:22:23 +00:00
parent db33922684
commit 0657690b1c
6 changed files with 55 additions and 15 deletions

View File

@@ -5245,6 +5245,12 @@ namespace libtorrent
(*m_ses.m_logger) << time_now_string() << " ON_CONNECT: " << print_endpoint(m_remote) << "\n";
#endif
if (ticket == -1)
{
disconnect(asio::error::operation_aborted);
return;
}
m_connection_ticket = ticket;
boost::shared_ptr<torrent> t = m_torrent.lock();