Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
63dcf9b7
Commit
63dcf9b7
authored
May 24, 2011
by
Blake Matheny
Browse files
Make sure subscribe is still respected
parent
72688572
Changes
1
Show whitespace changes
Inline
Side-by-side
async.c
View file @
63dcf9b7
...
...
@@ -362,7 +362,7 @@ void redisProcessCallbacks(redisAsyncContext *ac) {
* get a reply before pub/sub messages arrive. */
if
(
__redisShiftCallback
(
&
ac
->
replies
,
&
cb
)
!=
REDIS_OK
)
{
// error reply before any callbacks were setup
if
(
((
redisReply
*
)
reply
)
->
type
==
REDIS_REPLY_ERROR
)
{
if
(
!
(
c
->
flags
&
REDIS_SUBSCRIBED
)
&&
((
redisReply
*
)
reply
)
->
type
==
REDIS_REPLY_ERROR
)
{
c
->
err
=
REDIS_ERR_OTHER
;
err_len
=
strlen
(((
redisReply
*
)
reply
)
->
str
);
err_len
=
err_len
<
(
sizeof
(
c
->
errstr
)
-
1
)
?
err_len
:
(
sizeof
(
c
->
errstr
)
-
1
);
...
...
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