'Invoked when RabbitMQ replies to a Channel.Close method
:param pika.frame.Method method_frame: Method frame with Channel.CloseOk
method'

def _on_closeok(self, method_frame):

    LOGGER.info('Received    %s    on    %s', method_frame.method, self)
    self._set_state(self.CLOSED)
    try:
        self.callbacks.process(self.channel_number, '_on_channel_close', self, self, self._closing_code_and_text[0], self._closing_code_and_text[1])
    finally:
        self._cleanup()
