tfix: self.s is None if we are not connected - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 81520729381241648e47933b37211d1238c338c1 DIR parent cfb3aa6a12c44039e08a59e0ec5b649c0ffda053 HTML Author: thomasv <thomasv@gitorious> Date: Sat, 27 Oct 2012 16:46:42 +0200 fix: self.s is None if we are not connected Diffstat: M lib/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -470,7 +470,7 @@ class Interface(threading.Thread): print "changing server:", server, proxy self.server = server self.proxy = proxy - if self.protocol in 'st': + if self.protocol in 'st' and self.s: self.s.shutdown(socket.SHUT_RDWR) self.s.close() self.is_connected = False # this exits the polling loop