Compare commits
1 Commits
master
...
no-autofre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de73d24131 |
7
async.c
7
async.c
@ -444,6 +444,13 @@ void __redisAsyncDisconnect(redisAsyncContext *ac) {
|
|||||||
* callbacks with a NULL-reply. */
|
* callbacks with a NULL-reply. */
|
||||||
if (!(c->flags & REDIS_NO_AUTO_FREE)) {
|
if (!(c->flags & REDIS_NO_AUTO_FREE)) {
|
||||||
__redisAsyncFree(ac);
|
__redisAsyncFree(ac);
|
||||||
|
} else {
|
||||||
|
if (c->flags & REDIS_CONNECTED) {
|
||||||
|
__redisRunDisconnectCallback(ac, ac->err == 0 ? REDIS_OK : REDIS_ERR);
|
||||||
|
}
|
||||||
|
if (ac->dataCleanup) {
|
||||||
|
ac->dataCleanup(ac->data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user