diff --git a/src/hlua.c b/src/hlua.c index f1c937afa..fe58b9d0b 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -5747,6 +5747,8 @@ static void hlua_applet_tcp_fct(struct appctx *ctx) /* yield. */ case HLUA_E_AGAIN: + if (hlua->wake_time != TICK_ETERNITY) + task_schedule(ctx->ctx.hlua_apptcp.task, hlua->wake_time); return; /* finished with error. */ @@ -5970,6 +5972,8 @@ static void hlua_applet_http_fct(struct appctx *ctx) /* yield. */ case HLUA_E_AGAIN: + if (hlua->wake_time != TICK_ETERNITY) + task_schedule(ctx->ctx.hlua_apphttp.task, hlua->wake_time); return; /* finished with error. */