From b0b5e045ffc13dd84206f4d5c1318107bfae95cf Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 16 Jan 2020 15:40:24 -0500 Subject: [PATCH] non blocking aioupnp success analytics --- lbry/extras/daemon/components.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lbry/extras/daemon/components.py b/lbry/extras/daemon/components.py index 38ebb5d9c..2af376904 100644 --- a/lbry/extras/daemon/components.py +++ b/lbry/extras/daemon/components.py @@ -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)