Skip to content
Snippets Groups Projects
Commit 40138185 authored by dkirov's avatar dkirov
Browse files

always del active connection

parent 1e7c9e35
No related branches found
No related tags found
No related merge requests found
......@@ -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 '''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment