summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_accept.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_conn_accept.c')
-rw-r--r--src/nxt_conn_accept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_conn_accept.c b/src/nxt_conn_accept.c
index 6f42cf3d..1f620d76 100644
--- a/src/nxt_conn_accept.c
+++ b/src/nxt_conn_accept.c
@@ -217,11 +217,11 @@ nxt_conn_accept(nxt_task_t *task, nxt_listen_event_t *lev, nxt_conn_t *c)
//c->socket.read_ready = 1;
// lev->listen->handler(task, c, lev->socket.data);
nxt_work_queue_add(c->read_work_queue, lev->listen->handler,
- task, c, lev->socket.data);
+ &c->task, c, lev->socket.data);
} else {
nxt_work_queue_add(c->write_work_queue, lev->listen->handler,
- task, c, lev->socket.data);
+ &c->task, c, lev->socket.data);
}
next = nxt_conn_accept_next(task, lev);