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

@@ -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;
}