summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMonsterDruide1 <5958456@gmail.com>2023-01-04 13:49:31 +0100
committerMonsterDruide1 <5958456@gmail.com>2023-01-05 11:54:36 +0100
commit688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83 (patch)
tree8fa699180b8e0e015e4129f19545e3f4b355d053 /src
parentMerge pull request #9557 from FernandoS27/ooops-i-killed-the-shitty-drivers (diff)
downloadyuzu-688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83.tar
yuzu-688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83.tar.gz
yuzu-688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83.tar.bz2
yuzu-688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83.tar.lz
yuzu-688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83.tar.xz
yuzu-688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83.tar.zst
yuzu-688a9fbfa6f0fdb2d4d39fbf6cd7c970a94a0f83.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/internal_network/network.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cpp
index 447fbffaa..282ea1ff9 100644
--- a/src/core/internal_network/network.cpp
+++ b/src/core/internal_network/network.cpp
@@ -117,6 +117,8 @@ Errno TranslateNativeError(int e) {
return Errno::NETUNREACH;
case WSAEMSGSIZE:
return Errno::MSGSIZE;
+ case WSAETIMEDOUT:
+ return Errno::TIMEDOUT;
default:
UNIMPLEMENTED_MSG("Unimplemented errno={}", e);
return Errno::OTHER;
@@ -211,6 +213,8 @@ Errno TranslateNativeError(int e) {
return Errno::NETUNREACH;
case EMSGSIZE:
return Errno::MSGSIZE;
+ case ETIMEDOUT:
+ return Errno::TIMEDOUT;
default:
UNIMPLEMENTED_MSG("Unimplemented errno={}", e);
return Errno::OTHER;
@@ -226,7 +230,7 @@ Errno GetAndLogLastError() {
int e = errno;
#endif
const Errno err = TranslateNativeError(e);
- if (err == Errno::AGAIN) {
+ if (err == Errno::AGAIN || err == Errno::TIMEDOUT) {
return err;
}
LOG_ERROR(Network, "Socket operation error: {}", Common::NativeErrorToString(e));