Re-add 0.5 second delay before secondary to avoid minor ping loss

This commit is contained in:
Joshua Boniface 2018-09-30 19:16:47 -04:00
parent 0499ca5b47
commit b0084f6a18
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class RouterInstance():
def become_secondary(self): def become_secondary(self):
ansiiprint.echo('Setting router {} to secondary state'.format(self.name), '', 'i') ansiiprint.echo('Setting router {} to secondary state'.format(self.name), '', 'i')
ansiiprint.echo('Network list: {}'.format(', '.join(self.network_list)), '', 'c') ansiiprint.echo('Network list: {}'.format(', '.join(self.network_list)), '', 'c')
time.sleep(0.5)
for network in self.s_network: for network in self.s_network:
self.s_network[network].stopDHCPServer() self.s_network[network].stopDHCPServer()
self.s_network[network].removeGatewayAddress() self.s_network[network].removeGatewayAddress()