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
9ce15c4b
Commit
9ce15c4b
authored
Nov 04, 2018
by
Yossi Gottlieb
Browse files
Fix errors not propagating properly with libuv.h.
parent
970e5fa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
adapters/libuv.h
View file @
9ce15c4b
...
...
@@ -15,15 +15,12 @@ typedef struct redisLibuvEvents {
static
void
redisLibuvPoll
(
uv_poll_t
*
handle
,
int
status
,
int
events
)
{
redisLibuvEvents
*
p
=
(
redisLibuvEvents
*
)
handle
->
data
;
int
ev
=
(
status
?
p
->
events
:
events
);
if
(
status
!=
0
)
{
return
;
}
if
(
p
->
context
!=
NULL
&&
(
events
&
UV_READABLE
))
{
if
(
p
->
context
!=
NULL
&&
(
ev
&
UV_READABLE
))
{
redisAsyncHandleRead
(
p
->
context
);
}
if
(
p
->
context
!=
NULL
&&
(
ev
ents
&
UV_WRITABLE
))
{
if
(
p
->
context
!=
NULL
&&
(
ev
&
UV_WRITABLE
))
{
redisAsyncHandleWrite
(
p
->
context
);
}
}
...
...
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