]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix another ancient bug: ack every time!
authorThorsten <mail@aero2k.de>
Sat, 17 Jun 2023 09:19:26 +0000 (11:19 +0200)
committerThorsten <mail@aero2k.de>
Sat, 17 Jun 2023 09:19:26 +0000 (11:19 +0200)
distbot/bot/worker.py

index ccd1f4106690357a4fecaab6f6adc2b86b0bb5d1..92fcc77a23c7e6f474cbe12a39970afbf6812764 100644 (file)
@@ -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")