Merge branch 'display-images' of github.com:nuew/sway

This commit is contained in:
Nuew 2016-03-24 18:16:58 -04:00
commit 51fa9de688
9 changed files with 154 additions and 110 deletions

View file

@ -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;