def unregister(self, client):
    self.router.unregister(client.peer)
    for c in self.clients:
        if (c['client-peer'] == client.peer):
            self.clients.remove(c)
def unregister(self, client):
    self.router.unregister(client.peer)
    for c in self.clients:
        if (c['client-peer'] == client.peer):
            self.clients.remove(c)