def kill_claims(identity):
    """Kill all plugin claims for a certain client identity. Used when a client
    disconnects from the router."""
    if _ctd not in identity:
        logging.warning("No client %s is known to claim a device!", identity)
        return
    for dev_id in _ctd[identity]:
        g = greenlet.get_identity_greenlet(dev_id)
        if g is None:
            logging.warning("Device %s is not bound to client %s", dev_id,
                            identity)
            continue
        g.kill(exception=greenlet.BPGreenletExit, timeout=1, block=True)
dataset/ETHPy150Open metafetish/buttplug/buttplug/core/plugin.py/kill_claims/swapped operands of `not in`