always del active connection

This commit is contained in:
Dimitur Kirov 2006-05-03 15:31:08 +00:00
parent 1e7c9e350d
commit 4013818599
1 changed files with 4 additions and 4 deletions

View File

@ -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 '''