From 5bc319f6947f20fa9812f3858c5028e70a2277f2 Mon Sep 17 00:00:00 2001 From: TapTap Date: Sun, 9 Aug 2026 11:53:54 +0200 Subject: [PATCH] fix: remove redundant poll timeout branch --- src/shared/protocol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shared/protocol.c b/src/shared/protocol.c index fdb8d12..7b6681d 100644 --- a/src/shared/protocol.c +++ b/src/shared/protocol.c @@ -121,8 +121,6 @@ bool send_n_data(int file_descriptor, const void* data, size_t data_size) { log_message(LOG_LEVEL_ERROR, "Send timeout or poll failure"); return false; } - if (poll_result == 0) - return false; if (poll_result < 0) continue; if (pfd.revents & (POLLERR | POLLNVAL))