diff options
-rw-r--r-- | src/libutil/http.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index df44ec9b2..db7ea83fa 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1602,7 +1602,10 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn, } } - event_del (&priv->ev); + if (base != NULL && event_get_base (&priv->ev) == base) { + event_del (&priv->ev); + } + event_set (&priv->ev, fd, EV_WRITE, rspamd_http_event_handler, conn); if (base != NULL) { |