diff options
| author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 09:53:54 +0100 | 
|---|---|---|
| committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 09:53:54 +0100 | 
| commit | 8b0fddcb02f9d6fe588d464acbbd2d32843ee427 (patch) | |
| tree | 2f42a1f3e40824cd604eb7f06618846bfc48f796 | |
| parent | ad2456047ee628224f4fae1a2336c2afa97a0880 (diff) | |
| download | hiredict-8b0fddcb02f9d6fe588d464acbbd2d32843ee427.tar.xz | |
Clarify redisAsyncDisconnect behavior in comments
| -rw-r--r-- | async.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| @@ -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; | 
