Exiting application process in case of pre_init stage error.
This commit is contained in:
parent
aab235c4dc
commit
dcf46a63eb
1 changed files with 1 additions and 4 deletions
|
@ -333,10 +333,7 @@ nxt_app_start(nxt_task_t *task, void *data)
|
|||
ret = nxt_app->pre_init(task, data);
|
||||
|
||||
if (nxt_slow_path(ret != NXT_OK)) {
|
||||
nxt_debug(task, "application pre_init failed");
|
||||
|
||||
} else {
|
||||
nxt_debug(task, "application pre_init done");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue