Add TCP support #12
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user