Exiting application process in case of pre_init stage error.

This commit is contained in:
Max Romanov
2019-07-17 16:57:43 +03:00
parent aab235c4dc
commit dcf46a63eb

View File

@@ -333,10 +333,7 @@ nxt_app_start(nxt_task_t *task, void *data)
ret = nxt_app->pre_init(task, data); ret = nxt_app->pre_init(task, data);
if (nxt_slow_path(ret != NXT_OK)) { if (nxt_slow_path(ret != NXT_OK)) {
nxt_debug(task, "application pre_init failed"); return ret;
} else {
nxt_debug(task, "application pre_init done");
} }
} }