aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-09-24 16:46:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-09-24 16:46:26 +0100
commitd9341f9579b30440ecc5e1b96f4a815a602ee96c (patch)
treec2068f354ffce6178df3998b48e6a04872dacd30
parentdaa897e1a17ca5e631df144365594e4527c8d4ea (diff)
downloadrspamd-d9341f9579b30440ecc5e1b96f4a815a602ee96c.tar.gz
rspamd-d9341f9579b30440ecc5e1b96f4a815a602ee96c.zip
Avoid deadlock.
-rw-r--r--src/statfile.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/statfile.c b/src/statfile.c
index ce7c474cc..560a06def 100644
--- a/src/statfile.c
+++ b/src/statfile.c
@@ -421,9 +421,6 @@ statfile_pool_close (statfile_pool_t * pool, stat_file_t * file, gboolean keep_s
}
memory_pool_lock_mutex (pool->lock);
- if (file->lock) {
- memory_pool_lock_mutex (file->lock);
- }
if (file->map) {
msg_info ("syncing statfile %s", file->filename);