From: Vsevolod Stakhov Date: Sun, 27 Oct 2019 12:21:05 +0000 (+0000) Subject: [Minor] Always stop event on connection reset X-Git-Tag: 2.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76e99700eed59c4bf5b0e275c1a602fe963cc0b;p=thirdparty%2Frspamd.git [Minor] Always stop event on connection reset --- diff --git a/src/libutil/http_connection.c b/src/libutil/http_connection.c index 0762fde810..f7da1ee836 100644 --- a/src/libutil/http_connection.c +++ b/src/libutil/http_connection.c @@ -1281,10 +1281,9 @@ rspamd_http_connection_reset (struct rspamd_http_connection *conn) conn->finished = FALSE; /* Clear priv */ + rspamd_ev_watcher_stop (priv->ctx->event_loop, &priv->ev); if (!(priv->flags & RSPAMD_HTTP_CONN_FLAG_RESETED)) { - - rspamd_ev_watcher_stop (priv->ctx->event_loop, &priv->ev); rspamd_http_parser_reset (conn); }