restore minimum lag for server swiching
This commit is contained in:
parent
c18a49b8fe
commit
e462ef48cd
|
@ -94,7 +94,7 @@ class Blockchain(threading.Thread):
|
||||||
self.network.trigger_callback('updated')
|
self.network.trigger_callback('updated')
|
||||||
|
|
||||||
h = self.servers_height.get(self.network.interface.server)
|
h = self.servers_height.get(self.network.interface.server)
|
||||||
if h is not None and h < height :
|
if h is not None and h < height - 1:
|
||||||
print_error( "Server is lagging", height, h)
|
print_error( "Server is lagging", height, h)
|
||||||
if self.config.get('auto_cycle'):
|
if self.config.get('auto_cycle'):
|
||||||
self.network.set_server(i.server)
|
self.network.set_server(i.server)
|
||||||
|
|
Loading…
Reference in New Issue