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
91289c81
Unverified
Commit
91289c81
authored
Nov 30, 2018
by
Mark Nunberg
Committed by
GitHub
Nov 30, 2018
Browse files
Merge pull request #624 from yossigo/fix/libuv-errors
Fix errors not propagating properly with libuv.h.
parents
a7516ada
9ce15c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
adapters/libuv.h
View file @
91289c81
...
...
@@ -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