Exiting application process in case of pre_init stage error.
This commit is contained in:
@@ -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");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user