forked from LBRYCommunity/lbry-sdk
sq close the goddamn session
This commit is contained in:
parent
daae0b2836
commit
aa83bbd637
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ async def execute_command(method, params, conf_path=None):
|
||||||
api = await LBRYAPIClient.get_client(conf_path)
|
api = await LBRYAPIClient.get_client(conf_path)
|
||||||
await api.status()
|
await api.status()
|
||||||
except (ClientConnectorError, ConnectionError):
|
except (ClientConnectorError, ConnectionError):
|
||||||
|
await api.session.close()
|
||||||
print("Could not connect to daemon. Are you sure it's running?")
|
print("Could not connect to daemon. Are you sure it's running?")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue