diff --git a/owrx/source.py b/owrx/source.py index eff9e29..2c475ec 100644 --- a/owrx/source.py +++ b/owrx/source.py @@ -635,7 +635,6 @@ class CpuUsageThread(threading.Thread): def getSharedInstance(): if CpuUsageThread.sharedInstance is None: CpuUsageThread.sharedInstance = CpuUsageThread() - CpuUsageThread.sharedInstance.start() return CpuUsageThread.sharedInstance def __init__(self): @@ -679,6 +678,8 @@ class CpuUsageThread(threading.Thread): def add_client(self, c): self.clients.append(c) + if not self.is_alive(): + self.start() def remove_client(self, c): try: diff --git a/owrx/threading.py b/owrx/threading.py deleted file mode 100644 index e69de29..0000000