From e1e95cd52b769ed99e77a9eb16d3ab55d5c152de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Fri, 14 Sep 2012 15:59:39 +0800 Subject: [PATCH] launcher failed --- skynet-src/skynet_start.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/skynet-src/skynet_start.c b/skynet-src/skynet_start.c index c0e9eb62..d0a6e1a6 100644 --- a/skynet-src/skynet_start.c +++ b/skynet-src/skynet_start.c @@ -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); }