struct rspamd_task **ptask;
struct thread_entry *thread_entry;
+ cd->item = item;
rspamd_symcache_item_async_inc (task, item, "lua coro symbol");
thread_entry = lua_thread_pool_get_for_task (task);
lua_State *thread = thread_entry->lua_state;
cd->stack_level = lua_gettop (thread);
- cd->item = item;
if (cd->cb_is_ref) {
lua_rawgeti (thread, LUA_REGISTRYINDEX, cd->callback.ref);
ctx->thread = NULL;
results = lua_redis_push_results(ctx, thread->lua_state);
+
+ if (ud->item) {
+ rspamd_symcache_set_cur_item (ud->task, ud->item);
+ }
+
lua_thread_resume (thread, results);
lua_redis_cleanup_events(ctx);
}