diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-18 16:54:48 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-18 16:54:48 +0400 |
commit | df48852be53a1822537e55e846723ee49bb421c5 (patch) | |
tree | d8d96203f12703650401dc6e97d4610b73de663a /src/buffer.c | |
parent | c66f2410104029edce0e18f76f2567a520cea165 (diff) | |
download | rspamd-df48852be53a1822537e55e846723ee49bb421c5.tar.gz rspamd-df48852be53a1822537e55e846723ee49bb421c5.zip |
Use event_set correctly after event_del.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 1 |
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; |