From 8b0fddcb02f9d6fe588d464acbbd2d32843ee427 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 1 Nov 2010 09:53:54 +0100 Subject: [PATCH] Clarify redisAsyncDisconnect behavior in comments --- async.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;