pyngus/link.py
def _session_closed(self):
        """Remote has closed the session used by this link."""
        # if link not already closed:
        if self._endpoint_state & proton.Endpoint.REMOTE_ACTIVE:
            # simulate close received
            self._process_remote_state()
        elif self._endpoint_state & proton.Endpoint.REMOTE_UNINIT:
            # locally created link, will never come up
            self._failed = True
            self._link_failed("Parent session closed.")
def _session_closed(self):
        # if link not already closed:
        if self._endpoint_state & proton.Endpoint.REMOTE_ACTIVE:
            # simulate close received
            self._process_remote_state()
        elif self._endpoint_state & proton.Endpoint.REMOTE_UNINIT:
            # locally created link, will never come up
            self._failed = True
            self._link_failed("Parent session closed.")
def _session_closed ( self ) : # if link not already closed: if self . _endpoint_state & proton . Endpoint . REMOTE_ACTIVE : # simulate close received self . _process_remote_state ( ) elif self . _endpoint_state & proton . Endpoint . REMOTE_UNINIT : # locally created link, will never come up self . _failed = True self . _link_failed ( "Parent session closed." )
Remote has closed the session used by this link.
Remote has closed the session used by this link .