1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

chore: don't warn on ECONNREFUSED to peer sockets. (#4678)

Fixes #1031.
This commit is contained in:
Charles Kerr 2023-01-27 00:00:00 -06:00 committed by GitHub
parent b641906b13
commit 568b23374c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,7 +239,8 @@ tr_peer_socket tr_netOpenPeerSocket(tr_session* session, tr_address const& addr,
#endif
sockerrno != EINPROGRESS)
{
if (auto const tmperrno = sockerrno; (tmperrno != ENETUNREACH && tmperrno != EHOSTUNREACH) || addr.is_ipv4())
if (auto const tmperrno = sockerrno;
(tmperrno != ECONNREFUSED && tmperrno != ENETUNREACH && tmperrno != EHOSTUNREACH) || addr.is_ipv4())
{
tr_logAddWarn(fmt::format(
_("Couldn't connect socket {socket} to {address}:{port}: {error} ({error_code})"),