Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRosenow committed Dec 10, 2024
1 parent b5d4f94 commit 2c18ab2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/posix/tcp_ip_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,7 @@ static void *_TcpIpChannel_worker_thread(void *untyped_self) {
max_fd = (socket > self->send_failed_event_fds) ? socket : self->send_failed_event_fds;

// Wait for data or cancel if send_failed externally
ret = select(max_fd + 1, &readfds, NULL, NULL, NULL);
if (ret < 0) {
if (select(max_fd + 1, &readfds, NULL, NULL, NULL) < 0) {
TCP_IP_CHANNEL_ERR("Select returned with error. errno=", errno);
break;
}
Expand Down

0 comments on commit 2c18ab2

Please sign in to comment.