Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix PeriodicallyFlushingMemoryHandler inhibiting application shutdown (
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre authored Aug 3, 2021
1 parent 6878e10 commit 903db99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/10517.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the `PeriodicallyFlushingMemoryHandler` inhibiting application shutdown because of its background thread.
1 change: 1 addition & 0 deletions synapse/logging/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(
self._flushing_thread: Thread = Thread(
name="PeriodicallyFlushingMemoryHandler flushing thread",
target=self._flush_periodically,
daemon=True,
)
self._flushing_thread.start()

Expand Down

0 comments on commit 903db99

Please sign in to comment.