Skip to content
Snippets Groups Projects
Commit b16653d4 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 19e66e6c
No related branches found
No related tags found
No related merge requests found
......@@ -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 = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment