diff --git a/server-client.c b/server-client.c index 6d00dd37..5038a036 100644 --- a/server-client.c +++ b/server-client.c @@ -153,6 +153,9 @@ server_client_callback(int fd, int events, void *data) { struct client *c = data; + if (c->flags & CLIENT_DEAD) + return; + if (fd == c->ibuf.fd) { if (events & (POLLERR|POLLNVAL|POLLHUP)) goto client_lost;