diff options
-rw-r--r-- | src/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index c3ed7fec5..9357b81ae 100644 --- a/src/client.c +++ b/src/client.c @@ -417,7 +417,8 @@ static int client_input_received(struct client *cl, int bytesRead) if (ret == COMMAND_RETURN_KILL || ret == COMMAND_RETURN_CLOSE) return ret; - assert(!client_is_expired(cl)); + if (client_is_expired(cl)) + return COMMAND_RETURN_CLOSE; cl->bufferPos = cl->bufferLength; } if (cl->bufferLength == CLIENT_MAX_BUFFER_LENGTH) { |