fix fuzzy_m_search timeout

This commit is contained in:
Jack Robison 2018-10-19 10:11:02 -04:00
parent 336c51e6fc
commit ace5c80014
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -159,7 +159,7 @@ async def _fuzzy_m_search(lan_address: str, gateway_address: str, timeout: int =
packet_args = packet_args[batch_size:]
log.debug("sending batch of %i M-SEARCH attempts", batch_size)
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()
return args
except asyncio.TimeoutError: