From ace5c800146d2f31ed77cc607cb0159c949eff08 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 19 Oct 2018 10:11:02 -0400 Subject: [PATCH] fix fuzzy_m_search timeout --- aioupnp/protocols/ssdp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioupnp/protocols/ssdp.py b/aioupnp/protocols/ssdp.py index 6fd4437..064790e 100644 --- a/aioupnp/protocols/ssdp.py +++ b/aioupnp/protocols/ssdp.py @@ -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: