Commit cab1483e authored by Saul Ibarra's avatar Saul Ibarra

Fixed exception when initial winfo document is not full

parent d850ad9e
......@@ -451,8 +451,10 @@ class PresenceSubscriptionHandler(object):
account = notification.sender
watcher_list = notification.data.watcher_list
self._winfo_map.setdefault(account.id, {})
if notification.data.state == 'full':
self._winfo_map.setdefault(account.id, {}).clear()
self._winfo_map[account.id].clear()
for watcher in watcher_list:
uri = sip_prefix_re.sub('', watcher.sipuri)
if uri != account.id:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment