We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970e5fa commit 9ce15c4Copy full SHA for 9ce15c4
adapters/libuv.h
@@ -15,15 +15,12 @@ typedef struct redisLibuvEvents {
15
16
static void redisLibuvPoll(uv_poll_t* handle, int status, int events) {
17
redisLibuvEvents* p = (redisLibuvEvents*)handle->data;
18
+ int ev = (status ? p->events : events);
19
- if (status != 0) {
20
- return;
21
- }
22
-
23
- if (p->context != NULL && (events & UV_READABLE)) {
+ if (p->context != NULL && (ev & UV_READABLE)) {
24
redisAsyncHandleRead(p->context);
25
}
26
- if (p->context != NULL && (events & UV_WRITABLE)) {
+ if (p->context != NULL && (ev & UV_WRITABLE)) {
27
redisAsyncHandleWrite(p->context);
28
29
0 commit comments