fix args retured by on_connect_failure
This commit is contained in:
parent
84fcc6e8ce
commit
853d06bcaa
1 changed files with 2 additions and 2 deletions
|
@ -508,7 +508,7 @@ class Connection(ConnectionHandlers):
|
||||||
self.dispatch('CONNECTION_LOST',
|
self.dispatch('CONNECTION_LOST',
|
||||||
(_('Connection to proxy failed'), reason))
|
(_('Connection to proxy failed'), reason))
|
||||||
|
|
||||||
def connect_to_next_type(self):
|
def connect_to_next_type(self, retry=False):
|
||||||
if len(self._connection_types):
|
if len(self._connection_types):
|
||||||
self._current_type = self._connection_types.pop(0)
|
self._current_type = self._connection_types.pop(0)
|
||||||
if self.last_connection:
|
if self.last_connection:
|
||||||
|
@ -547,7 +547,7 @@ class Connection(ConnectionHandlers):
|
||||||
con.connect((self._current_host['host'], port), proxy=self._proxy,
|
con.connect((self._current_host['host'], port), proxy=self._proxy,
|
||||||
secure = secur)
|
secure = secur)
|
||||||
else:
|
else:
|
||||||
self.connect_to_next_host()
|
self.connect_to_next_host(retry)
|
||||||
|
|
||||||
def connect_to_next_host(self, retry = False):
|
def connect_to_next_host(self, retry = False):
|
||||||
if len(self._hosts):
|
if len(self._hosts):
|
||||||
|
|
Loading…
Add table
Reference in a new issue