diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-19 18:23:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | dc96f9b37ff98c12b7aeacd348162950c129098f (patch) | |
tree | 22b6f950bd71a90b020cdd708de5d1bd7f3e1dde /src/rspamadm/rspamadm.c | |
parent | 63f823eb9d6b4cfed6c3014ab350dfc61f33cb28 (diff) | |
download | rspamd-dc96f9b37ff98c12b7aeacd348162950c129098f.tar.gz rspamd-dc96f9b37ff98c12b7aeacd348162950c129098f.zip |
[Project] Make it compileable again...
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r-- | src/rspamadm/rspamadm.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 4320c2460..5908f77f9 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -379,15 +379,6 @@ main (gint argc, gchar **argv, gchar **env) rspamd_main->server_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "rspamadm"); -#ifdef HAVE_EVENT_NO_CACHE_TIME_FLAG - struct event_config *ev_cfg; - ev_cfg = event_config_new (); - event_config_set_flag (ev_cfg, EVENT_BASE_FLAG_NO_CACHE_TIME); - rspamd_main->ev_base = event_base_new_with_config (ev_cfg); -#else - rspamd_main->event_loop = event_init (); -#endif - rspamadm_fill_internal_commands (all_commands); help_command.command_data = all_commands; @@ -565,10 +556,8 @@ main (gint argc, gchar **argv, gchar **env) cmd->run (0, NULL, cmd); } - event_base_loopexit (rspamd_main->event_loop, NULL); -#ifdef HAVE_EVENT_NO_CACHE_TIME_FLAG - event_config_free (ev_cfg); -#endif + ev_break (rspamd_main->event_loop, EVBREAK_ALL); + REF_RELEASE (rspamd_main->cfg); rspamd_log_close (rspamd_main->logger, TRUE); |