From: Vsevolod Stakhov Date: Mon, 18 Jul 2011 12:54:48 +0000 (+0400) Subject: Use event_set correctly after event_del. X-Git-Tag: 0.4.0~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df48852be53a1822537e55e846723ee49bb421c5;p=rspamd.git Use event_set correctly after event_del. --- diff --git a/src/buffer.c b/src/buffer.c index 7280c9162..bfe4efba3 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -644,6 +644,7 @@ rspamd_dispatcher_pause (rspamd_io_dispatcher_t * d) void rspamd_dispatcher_restore (rspamd_io_dispatcher_t * d) { + event_del (d->ev); event_set (d->ev, d->fd, EV_READ | EV_WRITE, dispatcher_cb, d); event_add (d->ev, d->tv); d->is_restored = TRUE;