mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
exit after lua service launch failed
This commit is contained in:
@@ -170,7 +170,9 @@ _launch(struct skynet_context * context, void *ud, int type, int session, uint32
|
|||||||
assert(type == 0 && session == 0);
|
assert(type == 0 && session == 0);
|
||||||
struct snlua *l = ud;
|
struct snlua *l = ud;
|
||||||
skynet_callback(context, NULL, NULL);
|
skynet_callback(context, NULL, NULL);
|
||||||
_init(l, context, msg);
|
if (_init(l, context, msg)) {
|
||||||
|
skynet_command(context, "EXIT", NULL);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user