mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
cpu usage fix
This commit is contained in:
parent
117d0483f7
commit
cffb65e37d
2 changed files with 2 additions and 3 deletions
|
|
@ -452,8 +452,6 @@ class CpuUsageThread(threading.Thread):
|
|||
c.write_cpu_usage(cpu_usage)
|
||||
time.sleep(3)
|
||||
logger.debug("cpu usage thread shut down")
|
||||
if CpuUsageThread.sharedInstance == self:
|
||||
CpuUsageThread.sharedInstance = None
|
||||
|
||||
def get_cpu_usage(self):
|
||||
try:
|
||||
|
|
@ -486,6 +484,7 @@ class CpuUsageThread(threading.Thread):
|
|||
self.shutdown()
|
||||
|
||||
def shutdown(self):
|
||||
CpuUsageThread.sharedInstance = None
|
||||
self.doRun = False
|
||||
|
||||
class ClientReportingThread(threading.Thread):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue