aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamadm/control.c')
-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