Skip to content

Commit

Permalink
Update skynet_main.c (cloudwu#1890)
Browse files Browse the repository at this point in the history
Putting the relevant code together makes it easier to understand
  • Loading branch information
iamwlj authored Mar 18, 2024
1 parent 72688f5 commit 9fd4377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skynet-src/skynet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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();

Expand Down

0 comments on commit 9fd4377

Please sign in to comment.