core (xmpp): fix message workflow interruption from trigger.
This commit is contained in:
parent
1c1f617cdf
commit
03a8fc983e
1 changed files with 7 additions and 1 deletions
|
|
@ -1383,10 +1383,16 @@ class SatMessageProtocol(xmppim.MessageProtocol):
|
||||||
message_elt,
|
message_elt,
|
||||||
async_point_d
|
async_point_d
|
||||||
)
|
)
|
||||||
await async_point_d
|
trigger_ret_continue = await async_point_d
|
||||||
|
|
||||||
if delayed_call.active():
|
if delayed_call.active():
|
||||||
delayed_call.cancel()
|
delayed_call.cancel()
|
||||||
log.debug(f"delayed_call for {async_point_d} cancelled")
|
log.debug(f"delayed_call for {async_point_d} cancelled")
|
||||||
|
|
||||||
|
if not trigger_ret_continue:
|
||||||
|
# trigger returned False, we stop the workflow.
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = self.parse_message(message_elt)
|
data = self.parse_message(message_elt)
|
||||||
# we now do all post treatments added by plugins
|
# we now do all post treatments added by plugins
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue