fix tcpsocket error
All checks were successful
Linux arm64 / Build (push) Successful in 15s

This commit is contained in:
2025-03-02 20:38:44 +01:00
parent 8d3d9e38ee
commit afc4189450

View File

@@ -100,8 +100,8 @@ DataBuffer TcpSocket::Read(std::size_t a_Amount) {
int err = errno; int err = errno;
#endif #endif
if (err == WOULDBLOCK) { if (err == WOULDBLOCK) {
m_Status = Status::Error; // we are in non blocking mode and nothing is available
throw SocketError("Error while reading"); return {};
} }
Disconnect(); Disconnect();