diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-15 16:26:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-15 16:26:50 +0100 |
commit | 852f2c7f209507fe0a80da9a9b1c43f610179fb5 (patch) | |
tree | c56fa7c2136a55ea1974fdbdec353bc90a163230 /src/rspamd.c | |
parent | 43780287c7e02c55920d641f653b492839f7eba0 (diff) | |
download | rspamd-852f2c7f209507fe0a80da9a9b1c43f610179fb5.tar.gz rspamd-852f2c7f209507fe0a80da9a9b1c43f610179fb5.zip |
[Fix] Save symcache on exit
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 4f035324d..1d8eeaee6 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -1621,6 +1621,10 @@ main (gint argc, gchar **argv, gchar **env) rspamd_main->cfg->history_file); } + if (rspamd_main->cfg->cache) { + rspamd_symcache_save(rspamd_main->cfg->cache); + } + msg_info_main ("terminating..."); REF_RELEASE (rspamd_main->cfg); |