fix unawaited task

This commit is contained in:
Jack Robison 2019-04-12 13:30:30 -04:00
parent 40b9fa38b0
commit 1a14157d37
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -530,7 +530,7 @@ class UPnPComponent(Component):
self.upnp_redirects.update(upnp_redirects) self.upnp_redirects.update(upnp_redirects)
except (asyncio.TimeoutError, UPnPError): except (asyncio.TimeoutError, UPnPError):
self.upnp = None self.upnp = None
return self._maintain_redirects() return
elif self.upnp: # check existing redirects are still active elif self.upnp: # check existing redirects are still active
found = set() found = set()
mappings = await self.upnp.get_redirects() mappings = await self.upnp.get_redirects()