mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
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:
parent
5220a8c5c4
commit
f65cf3684d
@ -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)) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user