fix args retured by on_connect_failure

This commit is contained in:
Yann Leboulanger 2008-02-04 22:15:00 +00:00
parent 84fcc6e8ce
commit 853d06bcaa
1 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ class Connection(ConnectionHandlers):
self.dispatch('CONNECTION_LOST',
(_('Connection to proxy failed'), reason))
def connect_to_next_type(self):
def connect_to_next_type(self, retry=False):
if len(self._connection_types):
self._current_type = self._connection_types.pop(0)
if self.last_connection:
@ -547,7 +547,7 @@ class Connection(ConnectionHandlers):
con.connect((self._current_host['host'], port), proxy=self._proxy,
secure = secur)
else:
self.connect_to_next_host()
self.connect_to_next_host(retry)
def connect_to_next_host(self, retry = False):
if len(self._hosts):