diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-22 00:57:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 00:57:37 +0100 |
commit | 5a657488e14cb077f7c12392477f21c46957b18f (patch) | |
tree | 279680f92d67d4cdccfad7f0182b3046a9ef8caa /src/core/internal_network | |
parent | Merge pull request #9834 from german77/reverted (diff) | |
parent | net: translate ECONNRESET network error (diff) | |
download | yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.gz yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.bz2 yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.lz yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.xz yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.zst yuzu-5a657488e14cb077f7c12392477f21c46957b18f.zip |
Diffstat (limited to 'src/core/internal_network')
-rw-r--r-- | src/core/internal_network/network.cpp | 4 | ||||
-rw-r--r-- | src/core/internal_network/network.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cpp index 7494fb62d..f85c73ca6 100644 --- a/src/core/internal_network/network.cpp +++ b/src/core/internal_network/network.cpp @@ -109,6 +109,8 @@ Errno TranslateNativeError(int e) { return Errno::AGAIN; case WSAECONNREFUSED: return Errno::CONNREFUSED; + case WSAECONNRESET: + return Errno::CONNRESET; case WSAEHOSTUNREACH: return Errno::HOSTUNREACH; case WSAENETDOWN: @@ -205,6 +207,8 @@ Errno TranslateNativeError(int e) { return Errno::AGAIN; case ECONNREFUSED: return Errno::CONNREFUSED; + case ECONNRESET: + return Errno::CONNRESET; case EHOSTUNREACH: return Errno::HOSTUNREACH; case ENETDOWN: diff --git a/src/core/internal_network/network.h b/src/core/internal_network/network.h index 36994c22e..1e09a007a 100644 --- a/src/core/internal_network/network.h +++ b/src/core/internal_network/network.h @@ -30,6 +30,7 @@ enum class Errno { NOTCONN, AGAIN, CONNREFUSED, + CONNRESET, HOSTUNREACH, NETDOWN, NETUNREACH, |