From 9fd43778e2c5973e234b2de1f931f4c45b2f63c6 Mon Sep 17 00:00:00 2001 From: iamwlj Date: Mon, 18 Mar 2024 18:58:54 +0800 Subject: [PATCH] Update skynet_main.c (#1890) Putting the relevant code together makes it easier to understand --- skynet-src/skynet_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skynet-src/skynet_main.c b/skynet-src/skynet_main.c index a96c312d..5cbcc7e9 100644 --- a/skynet-src/skynet_main.c +++ b/skynet-src/skynet_main.c @@ -151,6 +151,7 @@ main(int argc, char *argv[]) { return 1; } _init_env(L); + lua_close(L); config.thread = optint("thread",8); config.module_path = optstring("cpath","./cservice/?.so"); @@ -161,8 +162,6 @@ main(int argc, char *argv[]) { config.logservice = optstring("logservice", "logger"); config.profile = optboolean("profile", 1); - lua_close(L); - skynet_start(&config); skynet_globalexit();