exit after lua service launch failed

This commit is contained in:
云风
2013-06-28 16:39:19 +08:00
parent c2b4a5c555
commit 67610a9614

View File

@@ -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;
} }