From abc1947e1901ca6655611e1e18f55a3b94a1feff Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 30 Jan 2026 09:51:00 +0100 Subject: [PATCH] BUG/MEDIUM: applet: Fix test on shut flags for legacy applets A regression was introduced in the commit 0ea601127 ("BUG/MAJOR: applet: Don't call I/O handler if the applet was shut"). The test on shut flags for legacy applets is inverted. It should be harmeless on 3.4 and 3.3 because all applets were converted. But this fix is mandatory for 3.2 and older. The patch must be backported as far as 3.0 with the commit above. --- src/applet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applet.c b/src/applet.c index de555c325..51ed0f9d8 100644 --- a/src/applet.c +++ b/src/applet.c @@ -852,7 +852,7 @@ struct task *task_run_applet(struct task *t, void *context, unsigned int state) /* Don't call I/O handler if the applet was shut (release callback was * already called) */ - if (se_fl_test(app->sedesc, SE_FL_SHR | SE_FL_SHW)) + if (!se_fl_test(app->sedesc, SE_FL_SHR | SE_FL_SHW)) app->applet->fct(app); TRACE_POINT(APPLET_EV_PROCESS, app);