mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix implicit-return in recorder (#122924)
This commit is contained in:
parent
f7f0f49015
commit
97de1c2b66
@ -71,7 +71,8 @@ class RecorderPool(SingletonThreadPool, NullPool):
|
||||
|
||||
def _do_return_conn(self, record: ConnectionPoolEntry) -> None:
|
||||
if threading.get_ident() in self.recorder_and_worker_thread_ids:
|
||||
return super()._do_return_conn(record)
|
||||
super()._do_return_conn(record)
|
||||
return
|
||||
record.close()
|
||||
|
||||
def shutdown(self) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user