Fix PeriodicallyFlushingMemoryHandler inhibiting application shutdown (#10517)
parent
6878e10653
commit
903db99ed5
|
@ -0,0 +1 @@
|
|||
Fix the `PeriodicallyFlushingMemoryHandler` inhibiting application shutdown because of its background thread.
|
|
@ -45,6 +45,7 @@ class PeriodicallyFlushingMemoryHandler(MemoryHandler):
|
|||
self._flushing_thread: Thread = Thread(
|
||||
name="PeriodicallyFlushingMemoryHandler flushing thread",
|
||||
target=self._flush_periodically,
|
||||
daemon=True,
|
||||
)
|
||||
self._flushing_thread.start()
|
||||
|
||||
|
|
Loading…
Reference in New Issue