From 4013818599fa2583073e30717882810d594dc6db Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Wed, 3 May 2006 15:31:08 +0000 Subject: [PATCH] always del active connection --- src/common/proxy65_manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 '''