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 2acc15567..28fb52705 100644
--- a/src/client.c
+++ b/src/client.c
@@ -540,7 +540,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);
}