]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix logical order of function invocation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Jul 2018 20:28:34 +0000 (21:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Jul 2018 20:28:34 +0000 (21:28 +0100)
src/libserver/symbols_cache.c

index 9bea3a87a1612e1fdc939d274b42d788497bcc4c..41783057b53deab181951e4ee24c8cda4087b99f 100644 (file)
@@ -479,8 +479,6 @@ rspamd_symbols_cache_post_init (struct symbols_cache *cache)
        gint i, j;
        gint id;
 
-       rspamd_symbols_cache_resort (cache);
-
        cur = cache->delayed_deps;
        while (cur) {
                ddep = cur->data;
@@ -582,6 +580,8 @@ rspamd_symbols_cache_post_init (struct symbols_cache *cache)
        g_ptr_array_sort_with_data (cache->prefilters, prefilters_cmp, cache);
        g_ptr_array_sort_with_data (cache->postfilters, postfilters_cmp, cache);
        g_ptr_array_sort_with_data (cache->idempotent, postfilters_cmp, cache);
+
+       rspamd_symbols_cache_resort (cache);
 }
 
 static gboolean