fix unawaited task

This commit is contained in:
Jack Robison 2019-01-28 17:27:39 -05:00
parent f507d95198
commit 7d33b4f1f3
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -615,7 +615,9 @@ class UPnPComponent(Component):
else:
log.error("failed to setup upnp")
if self.component_manager.analytics_manager:
self.component_manager.analytics_manager.send_upnp_setup_success_fail(success, await self.get_status())
await self.component_manager.analytics_manager.send_upnp_setup_success_fail(
success, await self.get_status()
)
self._maintain_redirects_task = asyncio.create_task(self._repeatedly_maintain_redirects(now=False))
async def stop(self):