diff options
-rw-r--r-- | common/ipc-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ipc-client.c b/common/ipc-client.c index 81348913..93f2963c 100644 --- a/common/ipc-client.c +++ b/common/ipc-client.c | |||
@@ -47,7 +47,7 @@ struct ipc_response *ipc_recv_response(int socketfd) { | |||
47 | size_t total = 0; | 47 | size_t total = 0; |
48 | while (total < ipc_header_size) { | 48 | while (total < ipc_header_size) { |
49 | ssize_t received = recv(socketfd, data + total, ipc_header_size - total, 0); | 49 | ssize_t received = recv(socketfd, data + total, ipc_header_size - total, 0); |
50 | if (received < 0) { | 50 | if (received <= 0) { |
51 | sway_abort("Unable to receive IPC response"); | 51 | sway_abort("Unable to receive IPC response"); |
52 | } | 52 | } |
53 | total += received; | 53 | total += received; |