summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_event_conn_read.c')
-rw-r--r--src/nxt_event_conn_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_event_conn_read.c b/src/nxt_event_conn_read.c
index 81fffd3c..f17b60d0 100644
--- a/src/nxt_event_conn_read.c
+++ b/src/nxt_event_conn_read.c
@@ -86,7 +86,7 @@ nxt_event_conn_io_read(nxt_task_t *task, void *obj, void *data)
if (n != NXT_AGAIN) {
nxt_event_fd_block_read(engine, &c->socket);
- nxt_timer_disable(&c->read_timer);
+ nxt_timer_disable(engine, &c->read_timer);
if (n == 0) {
handler = state->close_handler;
@@ -125,7 +125,7 @@ ready:
nxt_event_fd_block_read(engine, &c->socket);
if (state->autoreset_timer) {
- nxt_timer_disable(&c->read_timer);
+ nxt_timer_disable(engine, &c->read_timer);
}
handler = state->ready_handler;