Fix unclean exit due to uncaught errors/exceptions #5

Merged
hackrush01 merged 3 commits from fix-unclean-exit into master 2019-02-11 18:28:29 +01:00
Showing only changes of commit daaa41ba3d - Show all commits

View file

@ -196,6 +196,7 @@ class Gateway:
async def discover_gateway(cls, lan_address: str, gateway_address: str, timeout: int = 30,
igd_args: OrderedDict = None, loop=None, unicast: bool = None):
if unicast is not None:
return await cls._discover_gateway(lan_address, gateway_address, timeout, igd_args, loop, unicast)
return await cls._discover_gateway(lan_address, gateway_address, timeout, igd_args, loop)
done, pending = await asyncio.wait([
cls._discover_gateway(