summaryrefslogtreecommitdiffstats
path: root/src/libutil/map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-01 17:40:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-01 17:40:26 +0100
commitb3eb4d1800eee3527772f26201f6a8a6a3a56022 (patch)
tree8da5d42f06671ad75d4299405f1345bdf4c2d416 /src/libutil/map.c
parentf17a1b6d74374bbf0ac0acc87a6dcdd63f1a551f (diff)
downloadrspamd-b3eb4d1800eee3527772f26201f6a8a6a3a56022.tar.gz
rspamd-b3eb4d1800eee3527772f26201f6a8a6a3a56022.zip
[Project] Start SRV upstreams implementation
Diffstat (limited to 'src/libutil/map.c')
-rw-r--r--src/libutil/map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index 4f0e2354c..42134921a 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -970,7 +970,9 @@ rspamd_map_periodic_dtor (struct map_periodic_cbdata *periodic)
}
if (periodic->locked) {
- rspamd_map_schedule_periodic (periodic->map, FALSE, FALSE, FALSE);
+ if (!periodic->map->wrk->wanna_die) {
+ rspamd_map_schedule_periodic (periodic->map, FALSE, FALSE, FALSE);
+ }
g_atomic_int_set (periodic->map->locked, 0);
msg_debug_map ("unlocked map");
}