Skip to content

Commit

Permalink
Change readability
Browse files Browse the repository at this point in the history
  • Loading branch information
urfeex authored Nov 7, 2024
1 parent 524e564 commit bb9d17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comm/tcp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ bool TCPSocket::read(uint8_t* buf, const size_t buf_len, size_t& read)
}
else if (res < 0)
{
if (errno != EAGAIN && errno != EWOULDBLOCK)
if (!(errno == EAGAIN || errno == EWOULDBLOCK))
{
// any permanent error should be detected early
state_ = SocketState::Disconnected;
Expand Down

0 comments on commit bb9d17a

Please sign in to comment.