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

Commit

Permalink
Fix an error which was thrown by the PresenceHandler _on_shutdown han…
Browse files Browse the repository at this point in the history
…dler. (#6640)
  • Loading branch information
richvdh authored Jan 6, 2020
1 parent 4b36b48 commit ab4b4ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
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

0 comments on commit ab4b4ee

Please sign in to comment.