summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 26533266..b328c632 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -1548,8 +1548,6 @@ nxt_router_engines_post(nxt_router_t *router, nxt_router_temp_conf_t *tmcf)
for (n = tmcf->engines->nelts; n != 0; n--) {
engine = recf->engine;
- nxt_router_engine_post(engine, recf->jobs);
-
switch (recf->action) {
case NXT_ROUTER_ENGINE_KEEP:
@@ -1564,6 +1562,8 @@ nxt_router_engines_post(nxt_router_t *router, nxt_router_temp_conf_t *tmcf)
break;
}
+ nxt_router_engine_post(engine, recf->jobs);
+
recf++;
}
}