check if self.Connetion is instantiated

This commit is contained in:
Dimitur Kirov 2005-08-02 14:25:21 +00:00
parent a25a59fe84
commit e9bcc20556
1 changed files with 1 additions and 1 deletions

View File

@ -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):