summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r--src/nxt_runtime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index 62b0e3b5..e35baa8f 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -497,9 +497,9 @@ nxt_runtime_quit(nxt_task_t *task)
static void
nxt_runtime_close_idle_connections(nxt_event_engine_t *engine)
{
+ nxt_conn_t *c;
nxt_queue_t *idle;
nxt_queue_link_t *link, *next;
- nxt_event_conn_t *c;
nxt_debug(&engine->task, "close idle connections");
@@ -510,11 +510,11 @@ nxt_runtime_close_idle_connections(nxt_event_engine_t *engine)
link = next)
{
next = nxt_queue_next(link);
- c = nxt_queue_link_data(link, nxt_event_conn_t, link);
+ c = nxt_queue_link_data(link, nxt_conn_t, link);
if (!c->socket.read_ready) {
nxt_queue_remove(link);
- nxt_event_conn_close(engine, c);
+ nxt_conn_close(engine, c);
}
}
}