From 6dd9a7d83a79c9314698816e38362349a1606f1a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 21 Aug 2011 01:55:38 +0000 Subject: [PATCH] don't post 'operation aborted' UDP errors when changing listen port --- ChangeLog | 1 + src/session_impl.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 60e2c3c78..51c060a35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/session_impl.cpp b/src/session_impl.cpp index f71d9b600..409cb488e 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -2089,7 +2089,9 @@ namespace aux { m_stat.received_tracker_bytes(len + 28); } - if (m_alerts.should_post()) + // don't bubble up operation aborted errors to the user + if (e != asio::error::operation_aborted + && m_alerts.should_post()) m_alerts.post_alert(udp_error_alert(ep, e)); return; }