aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c3
1 files changed, 3 insertions, 0 deletions
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;