Skip to content
Snippets Groups Projects
Commit 8f8ea035 authored by Sven-Ove Hänsel's avatar Sven-Ove Hänsel
Browse files

update ending condition in while loop

parent 1d0b13cd
No related branches found
No related tags found
No related merge requests found
...@@ -267,7 +267,7 @@ client.loop_start() ...@@ -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 # this try-finally block ensures that whenever we terminate the program earlier by hitting ctrl+c, it still gracefully exits
try: try:
i = 0 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) time.sleep(1)
i += 1 i += 1
if client.failed_connect == True: if client.failed_connect == True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment