Remove user from process_presence when stops syncing

pull/2082/head
Erik Johnston 2017-03-30 14:26:08 +01:00
parent 31e0fe9031
commit 63fcc42990
1 changed files with 1 additions and 0 deletions

View File

@ -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)