aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua_worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r--src/lua_worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index b2a3ffc19..7e15c632a 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -43,7 +43,7 @@
/* 60 seconds for worker's IO */
#define DEFAULT_WORKER_IO_TIMEOUT 60000
-extern struct rspamd_main *rspamd_main;
+
gpointer init_lua_worker (struct rspamd_config *cfg);
void start_lua_worker (struct rspamd_worker *worker);
@@ -409,7 +409,7 @@ start_lua_worker (struct rspamd_worker *worker)
luaL_unref (L, LUA_REGISTRYINDEX, ctx->cbref_fin);
}
- rspamd_log_close (rspamd_main->logger);
+ rspamd_log_close (worker->srv->logger);
exit (EXIT_SUCCESS);
}