diff --git a/src/common/xmpp/client.py b/src/common/xmpp/client.py index 1bdf622cd..3bb6323f6 100644 --- a/src/common/xmpp/client.py +++ b/src/common/xmpp/client.py @@ -152,7 +152,7 @@ class CommonClient: ''' get the ip address of the account, from which is made connection to the server , (e.g. me). We will create listening socket on the same ip ''' - if self.Connection: + if hasattr(self, 'Connection'): return self.Connection._sock.getsockname() def connect(self,server=None,proxy=None, ssl=None):