summaryrefslogtreecommitdiffstats
path: root/src/libutil/map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-08 11:29:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-08 11:29:49 +0000
commit7901576f5efdceb97d7df60f6cd1125130d9f6d1 (patch)
treeaedf6b444406ebfb48ce02998ad43269bea4586b /src/libutil/map.c
parente4de17c54e1057fb92edcfd3159771ca075f1a12 (diff)
downloadrspamd-7901576f5efdceb97d7df60f6cd1125130d9f6d1.tar.gz
rspamd-7901576f5efdceb97d7df60f6cd1125130d9f6d1.zip
[Minor] Stop periodics on terminate
Diffstat (limited to 'src/libutil/map.c')
-rw-r--r--src/libutil/map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index 8da3c7bd4..dcdb58f35 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -974,6 +974,10 @@ rspamd_map_periodic_dtor (struct map_periodic_cbdata *periodic)
rspamd_map_schedule_periodic (periodic->map,
RSPAMD_SYMBOL_RESULT_NORMAL);
}
+ else {
+ msg_debug_map ("stop scheduling periodics for %s; terminating state",
+ periodic->map->name);
+ }
}
g_free (periodic);