Simple time.sleep in place of threading wait due to upgraded zeroconf (#2307)

This commit is contained in:
Jesse Hills 2021-09-15 16:39:13 +12:00 committed by GitHub
parent de33cbd7e7
commit b276ac0588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ class HostResolver(RecordUpdateListener):
next_ = now + delay
delay *= 2
zc.wait(min(next_, last) - now)
time.sleep(min(next_, last) - now)
now = time.time()
finally:
zc.remove_listener(self)