From aa83bbd637af1c505f79a1f789626c75515ffc53 Mon Sep 17 00:00:00 2001 From: hackrush Date: Fri, 17 Aug 2018 00:53:01 +0530 Subject: [PATCH] sq close the goddamn session --- lbrynet/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbrynet/cli.py b/lbrynet/cli.py index 3bddf40b6..9eccd21ab 100644 --- a/lbrynet/cli.py +++ b/lbrynet/cli.py @@ -31,6 +31,7 @@ async def execute_command(method, params, conf_path=None): api = await LBRYAPIClient.get_client(conf_path) await api.status() except (ClientConnectorError, ConnectionError): + await api.session.close() print("Could not connect to daemon. Are you sure it's running?") return 1