mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Merge branch 'display-images' of github.com:nuew/sway
This commit is contained in:
commit
51fa9de688
9 changed files with 154 additions and 110 deletions
|
|
@ -47,7 +47,7 @@ struct ipc_response *ipc_recv_response(int socketfd) {
|
|||
size_t total = 0;
|
||||
while (total < ipc_header_size) {
|
||||
ssize_t received = recv(socketfd, data + total, ipc_header_size - total, 0);
|
||||
if (received < 0) {
|
||||
if (received <= 0) {
|
||||
sway_abort("Unable to receive IPC response");
|
||||
}
|
||||
total += received;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue