check if we are conencted when we receive a roster (fix #418)
This commit is contained in:
parent
19e66e6c87
commit
b16653d414
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue