diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_controller.c | 2 | ||||
-rw-r--r-- | src/nxt_runtime.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c index 299242d7..93d0c2c5 100644 --- a/src/nxt_controller.c +++ b/src/nxt_controller.c @@ -98,7 +98,7 @@ nxt_controller_start(nxt_task_t *task, nxt_runtime_t *rt) nxt_controller_request_fields_hash = hash; - if (nxt_event_conn_listen(task, rt->controller_socket) != NXT_OK) { + if (nxt_listen_event(task, rt->controller_socket) == NULL) { return NXT_ERROR; } diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 5678f522..62b0e3b5 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -1392,7 +1392,7 @@ nxt_runtime_listen_sockets_enable(nxt_task_t *task, nxt_runtime_t *rt) for (i = 0; i < n; i++) { if (ls[i].flags == NXT_NONBLOCK) { - if (nxt_event_conn_listen(task, &ls[i]) != NXT_OK) { + if (nxt_listen_event(task, &ls[i]) == NULL) { return NXT_ERROR; } } |