X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/6f34d1310f0993c32b222dcf8e650da735336537..918393ff0ad35af6bb8b8c303f09da13a6c7587e:/server/speaker.c diff --git a/server/speaker.c b/server/speaker.c index 00fc276..340e995 100644 --- a/server/speaker.c +++ b/server/speaker.c @@ -490,7 +490,8 @@ static void mainloop(void) { id[l] = 0; D(("id %s fd %d", id, fd)); t = findtrack(id, 1/*create*/); - write(fd, "", 1); /* write an ack */ + if (write(fd, "", 1) < 0) /* write an ack */ + error(errno, "writing ack to inbound connection"); if(t->fd != -1) { error(0, "%s: already got a connection", id); xclose(fd);