server_is_lagging: return True if no height

This commit is contained in:
ThomasV 2016-02-15 15:58:08 +01:00
parent d56ec05b9b
commit 4dd479cf59
1 changed files with 1 additions and 1 deletions

View File

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