mirror of
https://github.com/home-assistant/core.git
synced 2026-09-11 18:24:54 -05:00
Clear recorder startup tasks from memory after processing (#90240)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
co-authored by
Paulus Schoutsen
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())
|
||||
|
||||
Reference in New Issue
Block a user