forked from LBRYCommunity/lbry-sdk
session close is async, fix annoying error message
This commit is contained in:
parent
7c5211d420
commit
bc678f2146
1 changed files with 2 additions and 2 deletions
|
@ -3493,8 +3493,8 @@ class Client(API):
|
|||
self.ws = await self.session.ws_connect(self.url)
|
||||
self.receive_messages_task = asyncio.create_task(self.receive_messages())
|
||||
|
||||
def disconnect(self):
|
||||
self.session.close()
|
||||
async def disconnect(self):
|
||||
await self.session.close()
|
||||
self.receive_messages_task.cancel()
|
||||
|
||||
async def receive_messages(self):
|
||||
|
|
Loading…
Reference in a new issue