From e4b6070c0f86ae2cd92c53301253cbabf565dd68 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 9 Dec 2019 12:15:38 +0100 Subject: [PATCH] Modules: more clarification about disconnection callback. --- src/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.c b/src/module.c index 111e1c202..f9e0d8036 100644 --- a/src/module.c +++ b/src/module.c @@ -4194,8 +4194,8 @@ void unblockClientFromModule(client *c) { /* Call the disconnection callback if any. Note that * bc->disconnect_callback is set to NULL if the client gets disconnected - * by the module itself, so the callback will NOT get called if this is - * not an actual disconnection event. */ + * by the module itself or because of a timeout, so the callback will NOT + * get called if this is not an actual disconnection event. */ if (bc->disconnect_callback) { RedisModuleCtx ctx = REDISMODULE_CTX_INIT; ctx.blocked_privdata = bc->privdata;