]> source.dussan.org Git - rspamd.git/commitdiff
Avoid deadlock.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2013 15:46:26 +0000 (16:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2013 15:46:26 +0000 (16:46 +0100)
src/statfile.c

index ce7c474cce65dbbf8f111aa89ebc9296f81f5979..560a06def844118ab35ade2f456935c0061ab99f 100644 (file)
@@ -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);