|
|
|
@ -529,6 +529,7 @@ 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 |
|
|
|
|
|
|
|
with self.interface_lock: |
|
|
|
self.stop_network() |
|
|
|
self.stop_network() |
|
|
|
self.default_server = server |
|
|
|
self.default_server = server |
|
|
|
self.start_network(protocol, proxy) |
|
|
|
self.start_network(protocol, proxy) |
|
|
|
|