git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cfb3aa6
)
fix: self.s is None if we are not connected
author
thomasv
<thomasv@gitorious>
Sat, 27 Oct 2012 14:46:42 +0000 (16:46 +0200)
committer
thomasv
<thomasv@gitorious>
Sat, 27 Oct 2012 14:46:42 +0000 (16:46 +0200)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
135ad1e
..
4c792b5
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-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