]> source.dussan.org Git - rspamd.git/commitdiff
Forgot event_del.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 21 Feb 2012 16:16:17 +0000 (20:16 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 21 Feb 2012 16:16:17 +0000 (20:16 +0400)
src/buffer.c

index 3fbcb7500b13a6be92e9b66700cef662aab1bfa7..5c7cae197f46935d263d0f969912275d2f6d0795 100644 (file)
@@ -695,6 +695,7 @@ rspamd_dispatcher_write (rspamd_io_dispatcher_t * d, void *data, size_t len, gbo
                return write_buffers (d->fd, d, FALSE);
        }
        /* Otherwise plan write event */
+       event_del (d->ev);
        event_set (d->ev, d->fd, EV_WRITE, dispatcher_cb, (void *)d);
        event_base_set (d->ev_base, d->ev);
        event_add (d->ev, d->tv);