aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-26 16:38:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-26 16:38:12 +0000
commit931e181c3202e5a92bcc614ec042fd46f032c4c3 (patch)
tree0397afeae739f47ca182b0a44de631870027a8f8
parent3089d894c57e2326db35f6c96224e0a005d803e6 (diff)
downloadrspamd-931e181c3202e5a92bcc614ec042fd46f032c4c3.tar.gz
rspamd-931e181c3202e5a92bcc614ec042fd46f032c4c3.zip
[Minor] Do not delete event from stopped base
-rw-r--r--src/libutil/http_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/http_context.c b/src/libutil/http_context.c
index 87540eee8..d5ab49450 100644
--- a/src/libutil/http_context.c
+++ b/src/libutil/http_context.c
@@ -177,7 +177,8 @@ rspamd_http_context_free (struct rspamd_http_context *ctx)
}
if (ctx->config.client_key_rotate_time > 0) {
- event_del (&ctx->client_rotate_ev);
+ /* Event is removed on base event loop termination */
+ /* event_del (&ctx->client_rotate_ev); */
if (ctx->client_kp) {
rspamd_keypair_unref (ctx->client_kp);