aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-27 12:21:05 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-27 12:21:05 +0000
commite76e99700eed59c4bf5b0e275c1a602fe963cc0b (patch)
treee37145c722f596a2a56d3136f8558abf225e9937
parente3a552c64ba7639f294edf24da0b062f7ca896ea (diff)
downloadrspamd-e76e99700eed59c4bf5b0e275c1a602fe963cc0b.tar.gz
rspamd-e76e99700eed59c4bf5b0e275c1a602fe963cc0b.zip
[Minor] Always stop event on connection reset
-rw-r--r--src/libutil/http_connection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/http_connection.c b/src/libutil/http_connection.c
index 0762fde81..f7da1ee83 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);
}