summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:53:54 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:53:54 +0100
commit8b0fddcb02f9d6fe588d464acbbd2d32843ee427 (patch)
tree2f42a1f3e40824cd604eb7f06618846bfc48f796 /async.c
parentad2456047ee628224f4fae1a2336c2afa97a0880 (diff)
Clarify redisAsyncDisconnect behavior in comments
Diffstat (limited to 'async.c')
-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;