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
c882a362
Commit
c882a362
authored
Dec 28, 2010
by
Pieter Noordhuis
Browse files
Only check REDIS_FREEING when a callback was executed
parent
e3776bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
c882a362
...
@@ -246,15 +246,15 @@ void redisProcessCallbacks(redisAsyncContext *ac) {
...
@@ -246,15 +246,15 @@ void redisProcessCallbacks(redisAsyncContext *ac) {
assert
(
__redisShiftCallback
(
&
ac
->
replies
,
&
cb
)
==
REDIS_OK
);
assert
(
__redisShiftCallback
(
&
ac
->
replies
,
&
cb
)
==
REDIS_OK
);
if
(
cb
.
fn
!=
NULL
)
{
if
(
cb
.
fn
!=
NULL
)
{
cb
.
fn
(
ac
,
reply
,
cb
.
privdata
);
cb
.
fn
(
ac
,
reply
,
cb
.
privdata
);
/* Proceed with free'ing when redisAsyncFree() was called. */
if
(
c
->
flags
&
REDIS_FREEING
)
{
__redisAsyncFree
(
ac
);
return
;
}
}
else
{
}
else
{
c
->
fn
->
freeObject
(
reply
);
c
->
fn
->
freeObject
(
reply
);
}
}
/* Proceed with free'ing when redisAsyncFree() was called. */
if
(
c
->
flags
&
REDIS_FREEING
)
{
__redisAsyncFree
(
ac
);
return
;
}
}
}
/* Disconnect when there was an error reading the reply */
/* Disconnect when there was an error reading the reply */
...
...
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