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

Fix an error which was thrown by the PresenceHandler _on_shutdown handler. #6640

Merged
merged 1 commit into from
Jan 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/6640.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix an error which was thrown by the PresenceHandler _on_shutdown handler.
9 changes: 2 additions & 7 deletions synapse/handlers/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@


class PresenceHandler(object):
def __init__(self, hs):
"""

Args:
hs (synapse.server.HomeServer):
"""
def __init__(self, hs: "synapse.server.HomeServer"):
self.hs = hs
self.is_mine = hs.is_mine
self.is_mine_id = hs.is_mine_id
Expand Down Expand Up @@ -230,7 +225,7 @@ def _on_shutdown(self):
is some spurious presence changes that will self-correct.
"""
# If the DB pool has already terminated, don't try updating
if not self.store.database.is_running():
if not self.store.db.is_running():
return

logger.info(
Expand Down