electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e9b06f494d69baa1977f55c5efef066b5482d516
parent 7a9141e509c3a39294defecb6ba53936a10074ab
Author: ThomasV <thomasv@gitorious>
Date:   Sun,  1 Mar 2015 07:27:05 +0100

abort set_parameters if changes are not allowed by config

Diffstat:
Mlib/network.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/network.py b/lib/network.py @@ -243,6 +243,9 @@ class Network(threading.Thread): 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')