aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c1
1 files changed, 1 insertions, 0 deletions
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;