Browse Source

server_is_lagging: return True if no height

283
ThomasV 9 years ago
parent
commit
4dd479cf59
  1. 2
      lib/network.py

2
lib/network.py

@ -245,7 +245,7 @@ class Network(util.DaemonThread):
sh = self.get_server_height()
if not sh:
self.print_error('no height for main interface')
return False
return True
lh = self.get_local_height()
result = (lh - sh) > 1
if result:

Loading…
Cancel
Save