aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index c516faafe..1f47b0dde 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -239,6 +239,9 @@ sync_cache (gpointer ud)
filename = ctx->hashfile;
if (filename == NULL ) {
rspamd_mutex_unlock (ctx->update_mtx);
+ if (wanna_die) {
+ return NULL;
+ }
continue;
}
expire = ctx->expire;
@@ -248,6 +251,9 @@ sync_cache (gpointer ud)
msg_err(
"cannot create hash file %s: %s", filename, strerror (errno));
rspamd_mutex_unlock (ctx->update_mtx);
+ if (wanna_die) {
+ return NULL;
+ }
continue;
}