mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Clear recorder startup tasks from memory after processing (#90240)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
8e07b71644
commit
e17cefd61c
@ -779,6 +779,10 @@ class Recorder(threading.Thread):
|
||||
for task in startup_tasks:
|
||||
self._guarded_process_one_task_or_recover(task)
|
||||
|
||||
# Clear startup tasks since this thread runs forever
|
||||
# and we don't want to hold them in memory
|
||||
del startup_tasks
|
||||
|
||||
self.stop_requested = False
|
||||
while not self.stop_requested:
|
||||
self._guarded_process_one_task_or_recover(queue_.get())
|
||||
|
Loading…
x
Reference in New Issue
Block a user