summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-30 15:50:20 +0100
committerErik Johnston <erik@matrix.org>2016-08-30 15:50:20 +0100
commit097330bae8cd948ea34a882290efd2182431b51c (patch)
treee7301c72fec9ac5afdde0499d9b9bfb7b06156c2
parentOccaisonally persist unpersisted presence updates (diff)
downloadsynapse-097330bae8cd948ea34a882290efd2182431b51c.tar.xz
Check correct variable
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py2
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