From: chris mikkelson Date: Wed, 25 Mar 2009 04:00:51 +0000 (-0500) Subject: Initialize both events, not just one... X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=0341777a7340c6aa1af7476725fd9381bc76be7f;p=smtpsink Initialize both events, not just one... --- diff --git a/io.c b/io.c index e47c202..cbfa685 100644 --- a/io.c +++ b/io.c @@ -95,6 +95,6 @@ void io_initconn(struct conn *c) { event_set(&c->re, c->fd, EV_READ, read_cb, (void *)c); - event_set(&c->re, c->fd, EV_WRITE, write_cb, (void *)c); + event_set(&c->we, c->fd, EV_WRITE, write_cb, (void *)c); }