Skip to content

Commit 9ce15c4

Browse files
committed
Fix errors not propagating properly with libuv.h.
1 parent 970e5fa commit 9ce15c4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

adapters/libuv.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ typedef struct redisLibuvEvents {
1515

1616
static void redisLibuvPoll(uv_poll_t* handle, int status, int events) {
1717
redisLibuvEvents* p = (redisLibuvEvents*)handle->data;
18+
int ev = (status ? p->events : events);
1819

19-
if (status != 0) {
20-
return;
21-
}
22-
23-
if (p->context != NULL && (events & UV_READABLE)) {
20+
if (p->context != NULL && (ev & UV_READABLE)) {
2421
redisAsyncHandleRead(p->context);
2522
}
26-
if (p->context != NULL && (events & UV_WRITABLE)) {
23+
if (p->context != NULL && (ev & UV_WRITABLE)) {
2724
redisAsyncHandleWrite(p->context);
2825
}
2926
}

0 commit comments

Comments
 (0)