From febb43519618819e55680b87b6a6f014325cfe2a Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 17 Jun 2023 11:19:26 +0200 Subject: [PATCH] fix another ancient bug: ack every time! --- distbot/bot/worker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/distbot/bot/worker.py b/distbot/bot/worker.py index ccd1f41..92fcc77 100644 --- a/distbot/bot/worker.py +++ b/distbot/bot/worker.py @@ -84,10 +84,10 @@ class Worker(threading.Thread): ack = False if not action: logger.debug("no action taken") - return - action.sender = body["from"] - action.recipient = action.recipient or body["to"] - send_action(self.actionqueue, action) + else: + action.sender = body["from"] + action.recipient = action.recipient or body["to"] + send_action(self.actionqueue, action) if ack: logger.debug("Done") -- 2.39.2