git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
2fb738b
)
fix issue occuring with set_server
author
ThomasV
<thomasv@gitorious>
Tue, 17 Dec 2013 17:20:54 +0000 (18:20 +0100)
committer
ThomasV
<thomasv@gitorious>
Tue, 17 Dec 2013 17:20:54 +0000 (18:20 +0100)
lib/interface.py
patch
|
blob
|
history
lib/network.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
cd7bf25
..
9389582
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-562,6
+562,8
@@
class Interface(threading.Thread):
self.s.shutdown(socket.SHUT_RDWR)
self.s.close()
+ self.is_connected = False
+
def is_up_to_date(self):
return self.unanswered_requests == {}
diff --git
a/lib/network.py
b/lib/network.py
index
ed0bab8
..
4a04b24
100644
(file)
--- a/
lib/network.py
+++ b/
lib/network.py
@@
-232,7
+232,7
@@
class Network(threading.Thread):
def stop_interface(self):
self.interface.stop()
- #self.interface = None
+
def set_server(self, server):
if self.default_server == server and self.interface.is_connected: