From e9bcc20556d03b15dfe31791bf0354ecf39fe3be Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 2 Aug 2005 14:25:21 +0000 Subject: [PATCH] check if self.Connetion is instantiated --- src/common/xmpp/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):