only post peer error alerts for actual errors
This commit is contained in:
parent
907588db12
commit
9715fbdb3a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue