mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-05 06:26:50 +00:00
don't start up unnecesserily
This commit is contained in:
parent
671509df3b
commit
6ec85aa349
2 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue