launcher failed

This commit is contained in:
云风
2012-09-14 15:59:39 +08:00
parent 0f66518a79
commit e1e95cd52b

View File

@@ -83,11 +83,9 @@ skynet_start(struct skynet_config * config) {
exit(1);
}
ctx = skynet_context_new("snlua", "launcher");
if (ctx == NULL) {
fprintf(stderr,"launch launcher error\n");
exit(1);
if (ctx) {
ctx = skynet_context_new("snlua", config->start);
}
ctx = skynet_context_new("snlua", config->start);
_start(config->thread);
}