From: chris mikkelson Date: Fri, 27 Mar 2009 03:44:21 +0000 (-0500) Subject: Fix handle_ioreq logic. X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=6b11d5e9e7e511ae066fb0f3eddaad13ac4cb792;p=smtpsink Fix handle_ioreq logic. --- 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;