fixed bug found by Massaroddel. Some code was accidentily put inside a condition depending on the alert level

This commit is contained in:
Arvid Norberg 2005-11-05 11:37:51 +00:00
parent 822ac4a283
commit 8c281cdb17
1 changed files with 5 additions and 6 deletions

View File

@ -882,13 +882,12 @@ namespace libtorrent { namespace detail
p->first->sender() p->first->sender()
, p->second->id() , p->second->id()
, "connection attempt failed")); , "connection attempt failed"));
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
(*m_logger) << "FAILED: " << (*i)->sender().as_string() << "\n";
#endif
p->second->set_failed();
m_half_open.erase(p);
} }
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
(*m_logger) << "FAILED: " << (*i)->sender().as_string() << "\n";
#endif
p->second->set_failed();
m_half_open.erase(p);
} }
} }
} }