mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-26 01:45:57 -05:00
Fix PeriodicallyFlushingMemoryHandler inhibiting application shutdown (#10517)
This commit is contained in:
parent
6878e10653
commit
903db99ed5
1
changelog.d/10517.bugfix
Normal file
1
changelog.d/10517.bugfix
Normal file
@ -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(
|
self._flushing_thread: Thread = Thread(
|
||||||
name="PeriodicallyFlushingMemoryHandler flushing thread",
|
name="PeriodicallyFlushingMemoryHandler flushing thread",
|
||||||
target=self._flush_periodically,
|
target=self._flush_periodically,
|
||||||
|
daemon=True,
|
||||||
)
|
)
|
||||||
self._flushing_thread.start()
|
self._flushing_thread.start()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user