Do not wait before updating IPs for the first time (#51)
This commit is contained in:
parent
458559d52c
commit
1a6ffc9681
@ -198,9 +198,9 @@ if __name__ == '__main__':
|
||||
killer = GracefulExit()
|
||||
prev_ips = None
|
||||
while True:
|
||||
updateIPs(getIPs())
|
||||
if killer.kill_now.wait(delay):
|
||||
break
|
||||
updateIPs(getIPs())
|
||||
else:
|
||||
print("❓ Unrecognized parameter '" + sys.argv[1] + "'. Stopping now.")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user