def sig_disconnect_received(self, sender_nid):
        if sender_nid in self.channels_in or sender_nid in self.channels_out:
            if sender_nid in self.channels_in:
                self.channels_in.remove(sender_nid)
            if self.channels_out in sender_nid:
                self.channels_out.remove(sender_nid)
                yield Disconnect, nid2addr(sender_nid)
        else:
            return
        if sender_nid in self.cl_avail_relays:
            yield self._handle_relay_down(sender_nid)
        else:
            yield RELAY_NODEDOWN_CHECKS(self, sender_nid)
        yield NODEDOWN(self, sender_nid)
dataset/ETHPy150Open eallik/spinoff/spinoff/remoting/hublogic.py/HubLogic.sig_disconnect_received/swapped operands of `in`