*** empty log message ***

This commit is contained in:
Arvid Norberg
2006-05-29 17:50:57 +00:00
parent 94628fa78d
commit 3d06c0636a

View File

@@ -1834,9 +1834,7 @@ namespace libtorrent
return;
}
// the connection cannot time out while connecting
// so we don't need to check m_disconnecting
assert(m_disconnecting == false);
if (m_disconnecting) return;
m_last_receive = second_clock::universal_time();
// this means the connection just succeeded
@@ -1884,7 +1882,12 @@ namespace libtorrent
m_write_pos += bytes_transferred;
if (error)
{
#ifdef TORRENT_VERBOSE_LOGGING
(*m_logger) << "**ERROR**: " << error.what() << "\n";
#endif
throw std::runtime_error(error.what());
}
if (m_disconnecting) return;
assert(!m_connecting);