From 6b11d5e9e7e511ae066fb0f3eddaad13ac4cb792 Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Thu, 26 Mar 2009 22:44:21 -0500 Subject: [PATCH] Fix handle_ioreq logic. --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io.c b/io.c index b6258dc..2d56936 100644 --- a/io.c +++ b/io.c @@ -17,10 +17,10 @@ static struct timeval timeout = {20, 0}; static void handle_ioreq(struct conn *c) { - if (c->event | EV_READ) { + if (c->event & EV_READ) { event_add(&c->re, &timeout); } - if (c->event | EV_WRITE) { + if (c->event & EV_WRITE) { event_add(&c->we, &timeout); } c->event = 0; -- 2.50.1