Update skynet_main.c (#1890)

Putting the relevant code together makes it easier to understand
This commit is contained in:
iamwlj
2024-03-18 18:58:54 +08:00
committed by GitHub
parent 72688f5771
commit 9fd43778e2

View File

@@ -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();