summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_runtime.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}