From b0b5e045ffc13dd84206f4d5c1318107bfae95cf Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 16 Jan 2020 15:40:24 -0500 Subject: [PATCH 1/2] 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) From fd6609e961264aaec41ea789f30c5861c24a1404 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 16 Jan 2020 15:40:29 -0500 Subject: [PATCH 2/2] bump aioupnp requirement to 0.0.17 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3b4f6238b..9f61b56c9 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( }, install_requires=[ 'aiohttp==3.5.4', - 'aioupnp==0.0.16', + 'aioupnp==0.0.17', 'appdirs==1.4.3', 'certifi>=2018.11.29', 'colorama==0.3.7',