From 44e6deef3de01b11284296cac26030a0ecc85b29 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 18 Feb 2022 20:03:29 -0500 Subject: [PATCH] Removed noisegate remnants --- op25Handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: