summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {