diff options
author | Erik Johnston <erik@matrix.org> | 2017-03-30 14:26:08 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-03-30 14:26:08 +0100 |
commit | 63fcc42990765563867536de550d18412f172626 (patch) | |
tree | f3b2773bd925aff15a09b0037cc79b4fd5741cb3 | |
parent | Fix indentation in docs/ (diff) | |
download | synapse-63fcc42990765563867536de550d18412f172626.tar.xz |
Remove user from process_presence when stops syncing
-rw-r--r-- | synapse/handlers/presence.py | 1 |
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) |