From b16653d41493a5d4559f2192eae6f7c94114558c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 10 Jun 2005 11:26:37 +0000 Subject: [PATCH] check if we are conencted when we receive a roster (fix #418) --- src/common/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 73d115c22..b1f84e256 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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 = {}