Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
de73d241
Commit
de73d241
authored
Sep 07, 2022
by
michael-grunder
Browse files
Still invoke onDisconnect and dataCleanup even when NO_AUTOFREE is set.
See #712
parent
d756f68a
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
de73d241
...
...
@@ -444,6 +444,13 @@ void __redisAsyncDisconnect(redisAsyncContext *ac) {
* callbacks with a NULL-reply. */
if
(
!
(
c
->
flags
&
REDIS_NO_AUTO_FREE
))
{
__redisAsyncFree
(
ac
);
}
else
{
if
(
c
->
flags
&
REDIS_CONNECTED
)
{
__redisRunDisconnectCallback
(
ac
,
ac
->
err
==
0
?
REDIS_OK
:
REDIS_ERR
);
}
if
(
ac
->
dataCleanup
)
{
ac
->
dataCleanup
(
ac
->
data
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment