From 8f8ea03584a83e90247eb2ce542bc2234e718aec Mon Sep 17 00:00:00 2001
From: cwy-p8d-u1 <sven-ove.haensel@stud.hs-hannover.de>
Date: Sat, 16 Mar 2024 17:09:17 +0100
Subject: [PATCH] update ending condition in while loop

---
 code/infrastructure/streaming/clients/sub/memgraph/sub_mem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/infrastructure/streaming/clients/sub/memgraph/sub_mem.py b/code/infrastructure/streaming/clients/sub/memgraph/sub_mem.py
index 592eae6..b431ff0 100644
--- a/code/infrastructure/streaming/clients/sub/memgraph/sub_mem.py
+++ b/code/infrastructure/streaming/clients/sub/memgraph/sub_mem.py
@@ -267,7 +267,7 @@ client.loop_start()
 # this try-finally block ensures that whenever we terminate the program earlier by hitting ctrl+c, it still gracefully exits   
 try:
     i = 0
-    while i < abort_time_limit and client.failed_connect == False:
+    while i < abort_time_limit: #and client.failed_connect == False:
             time.sleep(1)
             i += 1
             if client.failed_connect == True:
-- 
GitLab