aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index 6bda52bd5..d04cac31f 100644
--- a/src/client.c
+++ b/src/client.c
@@ -536,7 +536,8 @@ int client_manager_io(void)
}
client->lastTime = time(NULL);
}
- if (FD_ISSET(client->fd, &wfds)) {
+ if (!client_is_expired(client) &&
+ FD_ISSET(client->fd, &wfds)) {
client_write_deferred(client);
client->lastTime = time(NULL);
}