fix(ui): high cpu because of spinning garbage collection

This commit is contained in:
Brian McGee
2025-05-13 17:06:19 +01:00
parent 8b1d1f9c25
commit a79d907484

View File

@@ -104,7 +104,7 @@ class Webview:
self.stopped_threads.remove(op_key) self.stopped_threads.remove(op_key)
if self.stop_garbage_collection.is_set(): if self.stop_garbage_collection.is_set():
break break
time.sleep(1) time.sleep(1)
def run(self) -> None: def run(self) -> None:
thread = threading.Thread( thread = threading.Thread(