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