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;
#endif
if (err == WOULDBLOCK) {
m_Status = Status::Error;
throw SocketError("Error while reading");
// we are in non blocking mode and nothing is available
return {};
}
Disconnect();