diff --git a/lib/network.py b/lib/network.py index b8995dbe717b..5e30572c2a8a 100644 --- a/lib/network.py +++ b/lib/network.py @@ -243,6 +243,9 @@ def set_parameters(self, host, port, protocol, proxy, auto_connect): self.config.set_key('auto_cycle', auto_connect, True) self.config.set_key("proxy", proxy_str, True) self.config.set_key("server", server_str, True) + # abort if changes were not allowed by config + if self.config.get('server') != server_str or self.config.get('proxy') != proxy: + return if self.proxy != proxy or self.protocol != protocol: print_error('restarting network')