summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-30 14:26:08 +0100
committerErik Johnston <erik@matrix.org>2017-03-30 14:26:08 +0100
commit63fcc42990765563867536de550d18412f172626 (patch)
treef3b2773bd925aff15a09b0037cc79b4fd5741cb3 /synapse/handlers/presence.py
parentFix indentation in docs/ (diff)
downloadsynapse-63fcc42990765563867536de550d18412f172626.tar.xz
Remove user from process_presence when stops syncing
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r--synapse/handlers/presence.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 9f9257029e..ac6d1107bf 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -546,6 +546,7 @@ class PresenceHandler(object):
                 updates.append(prev_state.copy_and_replace(
                     last_user_sync_ts=time_now_ms,
                 ))
+                process_presence.discard(user_id)
 
             if updates:
                 yield self._update_states(updates)