Skip to content

Commit

Permalink
cleanup: Remove EAGAIN from the list of ignored errors.
Browse files Browse the repository at this point in the history
It is the same as `EINPROGRESS`, so the check is useless.
  • Loading branch information
iphydf committed Mar 3, 2022
1 parent 0dca481 commit 5812214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toxcore/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static bool should_ignore_recv_error(int err)

static bool should_ignore_connect_error(int err)
{
return err == EWOULDBLOCK || err == EINPROGRESS || err == EAGAIN;
return err == EWOULDBLOCK || err == EINPROGRESS;
}

non_null()
Expand Down

0 comments on commit 5812214

Please sign in to comment.