summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSönke Holz <sholz8530@gmail.com>2021-08-07 02:54:25 +0200
committerSönke Holz <sholz8530@gmail.com>2021-08-07 02:54:25 +0200
commitddeb8d854e6d2a5c0c82c21b8fbe46390b09098a (patch)
tree3cca08c73eef4855dceb84ad4d31e731c12d5f46 /src
parentnetwork: GetCurrentIpConfigInfo: return host IP address (diff)
downloadyuzu-ddeb8d854e6d2a5c0c82c21b8fbe46390b09098a.tar
yuzu-ddeb8d854e6d2a5c0c82c21b8fbe46390b09098a.tar.gz
yuzu-ddeb8d854e6d2a5c0c82c21b8fbe46390b09098a.tar.bz2
yuzu-ddeb8d854e6d2a5c0c82c21b8fbe46390b09098a.tar.lz
yuzu-ddeb8d854e6d2a5c0c82c21b8fbe46390b09098a.tar.xz
yuzu-ddeb8d854e6d2a5c0c82c21b8fbe46390b09098a.tar.zst
yuzu-ddeb8d854e6d2a5c0c82c21b8fbe46390b09098a.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/network/network.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp
index 5dc9cdc14..7b038041e 100644
--- a/src/core/network/network.cpp
+++ b/src/core/network/network.cpp
@@ -227,8 +227,12 @@ Errno GetAndLogLastError() {
#else
int e = errno;
#endif
+ const Errno err = TranslateNativeError(e);
+ if (err == Errno::AGAIN) {
+ return err;
+ }
LOG_ERROR(Network, "Socket operation error: {}", NativeErrorToString(e));
- return TranslateNativeError(e);
+ return err;
}
int TranslateDomain(Domain domain) {