non blocking aioupnp success analytics

This commit is contained in:
Jack Robison 2020-01-16 15:40:24 -05:00
parent f293d7cccc
commit b0b5e045ff
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -475,8 +475,10 @@ class UPnPComponent(Component):
if self.external_ip:
log.info("detected external ip using lbry.com fallback")
if self.component_manager.analytics_manager:
await self.component_manager.analytics_manager.send_upnp_setup_success_fail(
success, await self.get_status()
self.component_manager.loop.create_task(
self.component_manager.analytics_manager.send_upnp_setup_success_fail(
success, await self.get_status()
)
)
self._maintain_redirects_task = self.component_manager.loop.create_task(
self._repeatedly_maintain_redirects(now=False)