aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-07 12:39:29 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-07 12:39:29 +0000
commita7c19f4abcc29032f2a60f367c4953fb20322352 (patch)
treee9657292941fa500eb0dfda135acc089e04c3e6d /src/libserver/symbols_cache.c
parente453052cd29a379d5783130344de9438cfe0ed79 (diff)
downloadrspamd-a7c19f4abcc29032f2a60f367c4953fb20322352.tar.gz
rspamd-a7c19f4abcc29032f2a60f367c4953fb20322352.zip
[Fix] Fix dependencies tracking for callback symbols
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r--src/libserver/symbols_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index f965798f5..872b4dd6d 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -776,7 +776,7 @@ rspamd_symbols_cache_add_symbol (struct symbols_cache *cache,
rspamd_mempool_add_destructor (cache->static_pool,
rspamd_ptr_array_free_hard, item->rdeps);
- if (name != NULL && type != SYMBOL_TYPE_CALLBACK) {
+ if (name != NULL) {
g_hash_table_insert (cache->items_by_symbol, item->symbol, item);
}
@@ -1302,8 +1302,8 @@ rspamd_symbols_cache_check_symbol (struct rspamd_task *task,
rspamd_set_counter (item->cd, diff);
}
- rspamd_session_watch_stop (task->s);
pending_after = rspamd_session_events_pending (task->s);
+ rspamd_session_watch_stop (task->s);
if (pending_before == pending_after) {
/* No new events registered */