fix race in session.subscribe

This commit is contained in:
SomberNight 2018-09-11 20:39:16 +02:00
parent 8b8ca14c6d
commit ecc296cf67
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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])