From 5bbe6638e192dec79d9d73dd890fd5ea2cb03df4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 21 Jun 2019 14:53:13 +0100 Subject: [Minor] Fix control handler --- src/rspamadm/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rspamadm') diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index 0aa995abf..2cc783c66 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -98,7 +98,7 @@ static void rspamd_control_error_handler (struct rspamd_http_connection *conn, GError *err) { rspamd_fprintf (stderr, "Cannot make HTTP request: %e\n", err); - rspamd_http_connection_unref (conn); + ev_break (rspamd_main->event_loop, EVBREAK_ALL); } static gint -- cgit v1.2.3