'Close a Channel.
Close a channel specified by a reference to the
:class:`~kombu.transport.qpid.Channel` object.
:param channel: Channel that should be closed.
:type channel: :class:`~kombu.transport.qpid.Channel`.'

def close_channel(self, channel):

    try:
        self.channels.remove(channel)
    except ValueError:
        pass
    finally:
        channel.connection = None
