don't post 'operation aborted' UDP errors when changing listen port

This commit is contained in:
Arvid Norberg 2011-08-21 01:55:38 +00:00
parent fb06fd928b
commit 6dd9a7d83a
2 changed files with 4 additions and 1 deletions

View File

@ -89,6 +89,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* don't post 'operation aborted' UDP errors when changing listen port
* fix tracker retry logic, where in some configurations the next tier would not be tried
* fixed bug in http seeding logic (introduced in 0.15.7)
* add support for dont-have extension message

View File

@ -2089,7 +2089,9 @@ namespace aux {
m_stat.received_tracker_bytes(len + 28);
}
if (m_alerts.should_post<udp_error_alert>())
// don't bubble up operation aborted errors to the user
if (e != asio::error::operation_aborted
&& m_alerts.should_post<udp_error_alert>())
m_alerts.post_alert(udp_error_alert(ep, e));
return;
}