# File lib/handler/endpoint_state_handler.rb, line 86
    def on_connection_remote_open(event)
      if !(event.connection.state & Qpid::Proton::Endpoint::LOCAL_ACTIVE).zero?
        self.on_connection_opened(event)
      elsif event.connection.local_uninit?
        self.on_connection_opening(event)
        event.connection.open
      end
    end