Browse Source

fix race in session.subscribe

3.3.3.1
SomberNight 6 years ago
parent
commit
ecc296cf67
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/interface.py

2
electrum/interface.py

@ -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…
Cancel
Save