aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-21 14:53:13 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-22 10:57:29 +0100
commit5bbe6638e192dec79d9d73dd890fd5ea2cb03df4 (patch)
tree2980c3df08dd84fd42ede0e7146a2bb8491a81a6 /src/rspamadm
parentcc70ba59d242600a7275cbe1cad2ae1e1c0303ec (diff)
downloadrspamd-5bbe6638e192dec79d9d73dd890fd5ea2cb03df4.tar.gz
rspamd-5bbe6638e192dec79d9d73dd890fd5ea2cb03df4.zip
[Minor] Fix control handler
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/control.c2
1 files changed, 1 insertions, 1 deletions
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