From e67279bbaaf6d1008c7799b525b9139e8f80afc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 20 Feb 2024 16:52:25 +0100 Subject: [PATCH] added var deletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/app.py b/server/app.py index b35bb54..74772c4 100644 --- a/server/app.py +++ b/server/app.py @@ -119,10 +119,12 @@ def mqtt_publisher(ti_queue): try: try: print("new") + del tube_index_old tube_index = ti_queue.get(block=False) tube_index_old = tube_index except Empty: print("empty") + del tube_index if tube_index_old is not None: tube_index = tube_index_old else: