#NEWLINE# def _cb_close( self , method ) : #NEWLINE# #INDENT# 'Respond to a channel close sent by the server\n\n        This method indicates that the sender (server) wants to close the channel. This may be due\n        to internal conditions (e.g. a forced shut-down) or due to an error handling a specific\n        method, i.e. an exception. When a close is due to an exception, the sender provides the\n        class and method id of the method which caused the exception.\n\n        This method sends a "close-ok" to the server, then re-opens the channel.\n        ' #NEWLINE# args = method . args #NEWLINE# reply_code = args . read_short ( ) #NEWLINE# reply_text = args . read_shortstr ( ) #NEWLINE# class_id = args . read_short ( ) #NEWLINE# method_id = args . read_short ( ) #NEWLINE# self . _send_method ( Method ( spec . Channel . CloseOk ) ) #NEWLINE# self . is_open = False #NEWLINE# self . _revive ( ) #NEWLINE# method_type = method_t ( class_id , method_id ) #NEWLINE# raise error_for_code ( reply_code , reply_text , method_type , ChannelError , self . channel_id )