diff --git a/src/common/proxy65_manager.py b/src/common/proxy65_manager.py index 9af063601..4e2fa1d1b 100644 --- a/src/common/proxy65_manager.py +++ b/src/common/proxy65_manager.py @@ -131,11 +131,11 @@ class ProxyResolver: self.connections.remove(connection) except ValueError: pass - if self.state != S_FINISHED and connection == \ - self.active_connection: + if connection == self.active_connection: self.active_connection = None - self.state = S_INITIAL - self.try_next_connection() + if self.state != S_FINISHED: + self.state = S_INITIAL + self.try_next_connection() def try_next_connection(self): ''' try to resolve proxy with the next possible connection '''