mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
fix race in session.subscribe
This commit is contained in:
parent
8b8ca14c6d
commit
ecc296cf67
1 changed files with 1 additions and 1 deletions
|
@ -75,8 +75,8 @@ class NotificationSession(ClientSession):
|
|||
self.subscriptions[key].append(queue)
|
||||
result = self.cache[key]
|
||||
else:
|
||||
result = await self.send_request(method, params)
|
||||
self.subscriptions[key] = [queue]
|
||||
result = await self.send_request(method, params)
|
||||
self.cache[key] = result
|
||||
await queue.put(params + [result])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue