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
ec922cd0
Commit
ec922cd0
authored
Dec 31, 2010
by
Pieter Noordhuis
Browse files
Unsubscribe messages always have 3 elements
parent
ed97945c
Changes
1
Show whitespace changes
Inline
Side-by-side
async.c
View file @
ec922cd0
...
...
@@ -330,8 +330,8 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
/* If this was the last unsubscribe message, revert to
* non-subscribe mode. */
assert
(
reply
->
element
[
2
+
pvariant
]
->
type
==
REDIS_REPLY_INTEGER
);
if
(
reply
->
element
[
2
+
pvariant
]
->
integer
==
0
)
assert
(
reply
->
element
[
2
]
->
type
==
REDIS_REPLY_INTEGER
);
if
(
reply
->
element
[
2
]
->
integer
==
0
)
c
->
flags
&=
~
REDIS_SUBSCRIBED
;
}
}
...
...
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