summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_port.c')
-rw-r--r--src/nxt_port.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nxt_port.c b/src/nxt_port.c
index 52144759..c63ea01b 100644
--- a/src/nxt_port.c
+++ b/src/nxt_port.c
@@ -177,7 +177,7 @@ nxt_port_quit_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
}
-void
+nxt_inline void
nxt_port_send_new_port(nxt_task_t *task, nxt_runtime_t *rt,
nxt_port_t *new_port, uint32_t stream)
{
@@ -195,10 +195,7 @@ nxt_port_send_new_port(nxt_task_t *task, nxt_runtime_t *rt,
port = nxt_process_port_first(process);
- if (port->type == NXT_PROCESS_MAIN
- || port->type == NXT_PROCESS_CONTROLLER
- || port->type == NXT_PROCESS_ROUTER)
- {
+ if (nxt_proc_conn_martix[port->type][new_port->type]) {
(void) nxt_port_send_port(task, port, new_port, stream);
}