From f65cf3684d77a40d98ba4f529f1b8bc413523f2b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 11 Apr 2023 08:16:52 +0200 Subject: [PATCH] MINOR: hlua: Stop to check the SC state when executing a hlua cli command This part has changed but it was already handled by the CLI applet. There is no reason to performe this test when a hlua cli command is executed. --- src/hlua.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index 84b606e8b..6bbf5c97a 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -10870,10 +10870,6 @@ static int hlua_cli_io_handler_fct(struct appctx *appctx) sc = appctx_sc(appctx); fcn = ctx->fcn; - /* If the stream is disconnect or closed, ldo nothing. */ - if (unlikely(sc->state == SC_ST_DIS || sc->state == SC_ST_CLO)) - return 1; - /* Execute the function. */ switch (hlua_ctx_resume(hlua, 1)) {