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
c4325663
Commit
c4325663
authored
Nov 01, 2010
by
Pieter Noordhuis
Browse files
Cleanup function should remove read/write events
parent
437eea80
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
c4325663
...
...
@@ -81,9 +81,7 @@ static void __redisAsyncDisconnect(redisAsyncContext *ac) {
redisContext
*
c
=
&
(
ac
->
c
);
int
status
;
/* Signal event lib to stop reading/writing */
if
(
ac
->
evDelRead
)
ac
->
evDelRead
(
ac
->
data
);
if
(
ac
->
evDelWrite
)
ac
->
evDelWrite
(
ac
->
data
);
/* Signal event lib to clean up */
if
(
ac
->
evCleanup
)
ac
->
evCleanup
(
ac
->
data
);
/* Execute callback with proper status */
...
...
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