From: Christopher Faulet Date: Tue, 11 Apr 2023 06:16:52 +0000 (+0200) Subject: MINOR: hlua: Stop to check the SC state when executing a hlua cli command X-Git-Tag: v2.8-dev8~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f65cf3684d77a40d98ba4f529f1b8bc413523f2b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/hlua.c b/src/hlua.c index 84b606e8be..6bbf5c97ab 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)) {