fixed bug found by Massaroddel. Some code was accidentily put inside a condition depending on the alert level
This commit is contained in:
parent
822ac4a283
commit
8c281cdb17
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue