Fix Clients.__add__ not using identmap

This commit is contained in:
Thor77 2017-05-14 23:28:59 +02:00
parent a4c04e34c8
commit f209573d04
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ class Clients(MutableMapping):
:param client: Client to add to the collection
:type id_or_uid: Client
'''
self.store[client.identifier] = client
identifier = client.identifier
self.store[self.ident_map.get(identifier, identifier)] = client
return self
def __iter__(self):