# HG changeset patch # User Goffi # Date 1718224624 -7200 # Node ID 2417ad1d0f2370c57fabc7de0e077f2e0121fd1f # Parent 3fbd1a1285c1894262897935e4644b7cbac380f0 core (xmpp): fix message workflow interruption from trigger. diff -r 3fbd1a1285c1 -r 2417ad1d0f23 libervia/backend/core/xmpp.py --- a/libervia/backend/core/xmpp.py Wed Jun 12 22:36:15 2024 +0200 +++ b/libervia/backend/core/xmpp.py Wed Jun 12 22:37:04 2024 +0200 @@ -1383,10 +1383,16 @@ message_elt, async_point_d ) - await async_point_d + trigger_ret_continue = await async_point_d + if delayed_call.active(): delayed_call.cancel() log.debug(f"delayed_call for {async_point_d} cancelled") + + if not trigger_ret_continue: + # trigger returned False, we stop the workflow. + return + try: data = self.parse_message(message_elt) # we now do all post treatments added by plugins