only post peer error alerts for actual errors

This commit is contained in:
Arvid Norberg 2011-02-04 03:49:20 +00:00
parent 907588db12
commit 9715fbdb3a
1 changed files with 1 additions and 3 deletions

View File

@ -3351,9 +3351,7 @@ namespace libtorrent
if (ec)
{
if ((error > 1
|| ec.category() == get_libtorrent_category()
|| ec.category() == socks_category)
if ((error > 1 || ec.category() == socks_category)
&& m_ses.m_alerts.should_post<peer_error_alert>())
{
m_ses.m_alerts.post_alert(