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.
This commit is contained in:
Christopher Faulet 2023-04-11 08:16:52 +02:00
parent 5220a8c5c4
commit f65cf3684d

View File

@ -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)) {