From: Thorsten Date: Sat, 17 Jun 2023 09:19:26 +0000 (+0200) Subject: fix another ancient bug: ack every time! X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=febb43519618819e55680b87b6a6f014325cfe2a;p=urlbot-v3.git fix another ancient bug: ack every time! --- 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")