summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adapters/libevent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/libevent.h b/adapters/libevent.h
index 58bab4b..fb5558e 100644
--- a/adapters/libevent.h
+++ b/adapters/libevent.h
@@ -98,7 +98,7 @@ static void redisLibeventUpdate(void *privdata, short flag, int isRemove) {
}
event_del(e->ev);
- event_assign(e->ev, e->base, e->context->c.fd, e->flags,
+ event_assign(e->ev, e->base, e->context->c.fd, e->flags | EV_PERSIST,
redisLibeventHandler, privdata);
event_add(e->ev, tv);
}