]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not delete event from stopped base
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Feb 2019 16:38:12 +0000 (16:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Feb 2019 16:38:12 +0000 (16:38 +0000)
src/libutil/http_context.c

index 87540eee801021b8a1fc00288a9ecac95a942188..d5ab49450f3c096c8efe318a7405399296553b8b 100644 (file)
@@ -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);