]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: hlua: Stop to check the SC state when executing a hlua cli command
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Apr 2023 06:16:52 +0000 (08:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Apr 2023 06:19:06 +0000 (08:19 +0200)
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

index 84b606e8be4feded9bb5d30bbb034dcdfe23212a..6bbf5c97ab739557cb3c33a2e0af514cb8c79717 100644 (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)) {