[Telepathy-commits] [mingle/master] Remove the contact from the resource dict after running the resourceOffline callback
Sjoerd Simons
sjoerd at luon.net
Tue Nov 11 10:43:19 PST 2008
---
client.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/client.py b/client.py
index 264e2f4..8e036fe 100644
--- a/client.py
+++ b/client.py
@@ -149,8 +149,9 @@ class Client:
if stanza.getAttribute('type') == 'unavailable':
if resource_dict.has_key(jid.resource):
- contact = resource_dict.pop(jid.resource)
+ contact = resource_dict[jid.resource]
self.resourceOffline.callback(contact)
+ resource_dict.pop(jid.resource)
return
if resource_dict.has_key(jid.resource):
--
1.5.6.5
More information about the Telepathy-commits
mailing list