fix fuzzy_m_search timeout
This commit is contained in:
parent
336c51e6fc
commit
ace5c80014
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ async def _fuzzy_m_search(lan_address: str, gateway_address: str, timeout: int =
|
||||||
packet_args = packet_args[batch_size:]
|
packet_args = packet_args[batch_size:]
|
||||||
log.debug("sending batch of %i M-SEARCH attempts", batch_size)
|
log.debug("sending batch of %i M-SEARCH attempts", batch_size)
|
||||||
try:
|
try:
|
||||||
await asyncio.wait_for(protocol.m_search(gateway_address, batch_timeout, args), timeout)
|
await asyncio.wait_for(protocol.m_search(gateway_address, batch_timeout, args), batch_timeout)
|
||||||
protocol.disconnect()
|
protocol.disconnect()
|
||||||
return args
|
return args
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
|
|
Loading…
Reference in a new issue