always del active connection
This commit is contained in:
		
							parent
							
								
									1e7c9e350d
								
							
						
					
					
						commit
						4013818599
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -131,11 +131,11 @@ class ProxyResolver:
 | 
				
			||||||
			self.connections.remove(connection)
 | 
								self.connections.remove(connection)
 | 
				
			||||||
		except ValueError:
 | 
							except ValueError:
 | 
				
			||||||
			pass
 | 
								pass
 | 
				
			||||||
		if self.state != S_FINISHED and connection == \
 | 
							if connection == self.active_connection:
 | 
				
			||||||
								self.active_connection:
 | 
					 | 
				
			||||||
			self.active_connection = None
 | 
								self.active_connection = None
 | 
				
			||||||
			self.state = S_INITIAL
 | 
								if self.state != S_FINISHED:
 | 
				
			||||||
			self.try_next_connection()
 | 
									self.state = S_INITIAL
 | 
				
			||||||
 | 
									self.try_next_connection()
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	def try_next_connection(self):
 | 
						def try_next_connection(self):
 | 
				
			||||||
		''' try to resolve proxy with the next possible connection '''
 | 
							''' try to resolve proxy with the next possible connection '''
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue