summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_unit.c')
-rw-r--r--src/nxt_unit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c
index 69948954..0790afc4 100644
--- a/src/nxt_unit.c
+++ b/src/nxt_unit.c
@@ -5029,12 +5029,12 @@ retry:
nxt_unit_process_ready_req(ctx);
- rbuf = nxt_unit_read_buf_get(ctx);
- if (nxt_slow_path(rbuf == NULL)) {
- return NXT_UNIT_ERROR;
- }
-
if (ctx_impl->online) {
+ rbuf = nxt_unit_read_buf_get(ctx);
+ if (nxt_slow_path(rbuf == NULL)) {
+ return NXT_UNIT_ERROR;
+ }
+
goto retry;
}