don't restart tor unless its our own
This commit is contained in:
		
							parent
							
								
									5b78a8810d
								
							
						
					
					
						commit
						d4dd964069
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		|  | @ -1,5 +1,8 @@ | |||
| import netcontroller | ||||
| import config | ||||
| 
 | ||||
| def restart(comm_inst): | ||||
|     net = comm_inst.shared_state.get(netcontroller.NetController) | ||||
|     net.killTor() | ||||
|     net.startTor() | ||||
|     if not config.get('tor.use_existing_tor', False): | ||||
|         net = comm_inst.shared_state.get(netcontroller.NetController) | ||||
|         net.killTor() | ||||
|         net.startTor() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue