mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
fix #4529
This commit is contained in:
parent
04432fe93e
commit
a51940fac0
1 changed files with 4 additions and 3 deletions
|
@ -529,9 +529,10 @@ class Network(util.DaemonThread):
|
||||||
self.auto_connect = auto_connect
|
self.auto_connect = auto_connect
|
||||||
if self.proxy != proxy or self.protocol != protocol:
|
if self.proxy != proxy or self.protocol != protocol:
|
||||||
# Restart the network defaulting to the given server
|
# Restart the network defaulting to the given server
|
||||||
self.stop_network()
|
with self.interface_lock:
|
||||||
self.default_server = server
|
self.stop_network()
|
||||||
self.start_network(protocol, proxy)
|
self.default_server = server
|
||||||
|
self.start_network(protocol, proxy)
|
||||||
elif self.default_server != server:
|
elif self.default_server != server:
|
||||||
self.switch_to_interface(server)
|
self.switch_to_interface(server)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue