From e677d636eb771b5b9a863cfa308fdb24890ad9c4 Mon Sep 17 00:00:00 2001 From: Jiahang Chen <chen@mmi.rwth-aachen.de> Date: Tue, 5 Jan 2021 16:59:22 +0100 Subject: [PATCH] add channel confirmation --- ml/thing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ml/thing.py b/ml/thing.py index 4094af3..8f97199 100644 --- a/ml/thing.py +++ b/ml/thing.py @@ -450,6 +450,7 @@ def __on_broker_callback(self, ch, method, properties, body): elif isinstance(body, str): return + ch.basic_ack(method.delivery_tag) message_type = body.get("messageType") if message_type == "userMessage": self.on_user_message(body) -- GitLab