diff --git a/src/networking.c b/src/networking.c index fbee721211b9759af406ebee515c4882cdd99bc6..7ab763b3df2fc2a1c9e2f84993f8061df1ad46d1 100644 --- a/src/networking.c +++ b/src/networking.c @@ -755,7 +755,7 @@ void freeClient(redisClient *c) { * a context where calling freeClient() is not possible, because the client * should be valid for the continuation of the flow of the program. */ void freeClientAsync(redisClient *c) { - if (c->flags & REDIS_CLOSE_ASAP) return; + if (c->flags & REDIS_CLOSE_ASAP || c->flags & REDIS_LUA_CLIENT) return; c->flags |= REDIS_CLOSE_ASAP; listAddNodeTail(server.clients_to_close,c); }