fix bug causing shutdown delays

This commit is contained in:
Arvid Norberg 2012-01-20 08:04:10 +00:00
parent ef1d8b5921
commit a478fcaf10
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ namespace libtorrent
{
error_code ec;
mutex_t::scoped_lock l(m_mutex);
m_timer.cancel(ec);
if (m_num_connecting == 0) m_timer.cancel(ec);
m_abort = true;
std::list<entry> to_keep;