diff --git a/op25Handler.py b/op25Handler.py index 19610cc..f2a7c58 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -1,6 +1,6 @@ import threading import subprocess -import time +import asyncio import os @@ -45,7 +45,8 @@ class OP25Handler: #(threading.Thread): if seconds_waited % 5 == 0: print("Terminating OP25") self.OP25Proc.terminate() - time.sleep(1) + asyncio.sleep(5) + print(f"Waited {seconds_waited} seconds") seconds_waited += 1 except Exception as e: