check if we are conencted when we receive a roster (fix #418)

This commit is contained in:
Yann Leboulanger 2005-06-10 11:26:37 +00:00
parent 19e66e6c87
commit b16653d414
1 changed files with 2 additions and 0 deletions

View File

@ -522,6 +522,8 @@ class Connection:
self.dispatch('MSGERROR', (jid, errcode, errmsg))
def _getRosterCB(self, con, iq_obj):
if not self.connection:
return
roster = self.connection.getRoster().getRaw()
if not roster :
roster = {}