Skip to content

Commit

Permalink
Skipping idle state when port already closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mar0x committed Mar 15, 2018
1 parent 7958a22 commit 6da1207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nxt_router.c
Original file line number Diff line number Diff line change
Expand Up @@ -3204,7 +3204,7 @@ nxt_router_app_port_release(nxt_task_t *task, nxt_port_t *port,

adjust_idle_timer = 0;

if (!send_quit && port->app_pending_responses == 0) {
if (port->pair[1] != -1 && !send_quit && port->app_pending_responses == 0) {
nxt_assert(port->idle_link.next == NULL);

if (app->idle_processes == app->spare_processes
Expand Down

0 comments on commit 6da1207

Please sign in to comment.