commit 931e181: [Minor] Do not delete event from stopped base

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Feb 27 14:28:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-26 16:38:12 +0000
URL: https://github.com/rspamd/rspamd/commit/931e181c3202e5a92bcc614ec042fd46f032c4c3

[Minor] Do not delete event from stopped base

---
 src/libutil/http_context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);


More information about the Commits mailing list