]> source.dussan.org Git - rspamd.git/commitdiff
Use event_set correctly after event_del.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 18 Jul 2011 12:54:48 +0000 (16:54 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 18 Jul 2011 12:54:48 +0000 (16:54 +0400)
src/buffer.c

index 7280c916206579148a84a415e7bb310682cd915e..bfe4efba3cbb3321430617fe40c0851134a9e0b0 100644 (file)
@@ -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;