forked from platypush/platypush
Python 3.5 compatibility
This commit is contained in:
parent
5302d3143e
commit
cbae8132ed
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class ZeroconfPlugin(Plugin):
|
|||
while timeout and time.time() - discovery_start < timeout:
|
||||
to = discovery_start + timeout - time.time() if timeout else None
|
||||
try:
|
||||
evt: ZeroconfEvent = evt_queue.get(block=True, timeout=to)
|
||||
evt = evt_queue.get(block=True, timeout=to)
|
||||
if isinstance(evt, ZeroconfServiceAddedEvent) or isinstance(evt, ZeroconfServiceUpdatedEvent):
|
||||
services[evt.service_name] = {
|
||||
'type': evt.service_type,
|
||||
|
|
Loading…
Reference in a new issue