Browse Source

fix issue occuring with set_server

283
ThomasV 11 years ago
parent
commit
de94eaadeb
  1. 2
      lib/interface.py
  2. 2
      lib/network.py

2
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 == {}

2
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:

Loading…
Cancel
Save