fixed tracker timeout handling

This commit is contained in:
Arvid Norberg
2010-11-18 01:06:33 +00:00
parent 12d19f15e0
commit 40ed231366
5 changed files with 37 additions and 18 deletions

View File

@@ -239,8 +239,14 @@ namespace libtorrent
send_udp_connect();
}
void udp_tracker_connection::on_timeout()
void udp_tracker_connection::on_timeout(error_code const& ec)
{
if (ec)
{
fail(ec);
return;
}
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
boost::shared_ptr<request_callback> cb = requester();
char msg[200];