diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-30 15:50:20 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-30 15:50:20 +0100 |
commit | 097330bae8cd948ea34a882290efd2182431b51c (patch) | |
tree | e7301c72fec9ac5afdde0499d9b9bfb7b06156c2 /synapse | |
parent | Occaisonally persist unpersisted presence updates (diff) | |
download | synapse-097330bae8cd948ea34a882290efd2182431b51c.tar.xz |
Check correct variable
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/presence.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index a3c7952a4c..ab33952cd2 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -236,7 +236,7 @@ class PresenceHandler(object): unpersisted = self.unpersisted_users_changes self.unpersisted_users_changes = set() - if self.unpersisted_users_changes: + if unpersisted: yield self.store.update_presence([ self.user_to_current_state[user_id] for user_id in unpersisted |