summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--async.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/async.c b/async.c
index 1a0c7a6..bc6f330 100644
--- a/async.c
+++ b/async.c
@@ -70,7 +70,11 @@ int redisAsyncSetDisconnectCallback(redisAsyncContext *ac, redisDisconnectCallba
/* Tries to do a clean disconnect from Redis, meaning it stops new commands
* from being issued, but tries to flush the output buffer and execute
- * callbacks for all remaining replies. */
+ * callbacks for all remaining replies.
+ *
+ * This functions is generally called from within a callback, so the
+ * processCallbacks function will pick up the flag when there are no
+ * more replies. */
void redisAsyncDisconnect(redisAsyncContext *ac) {
redisContext *c = &(ac->c);
c->flags |= REDIS_DISCONNECTING;