diff options
Diffstat (limited to 'service.py')
-rwxr-xr-x | service.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -165,23 +165,25 @@ class RWAService(dbus.service.Object): def _update_session(self, pid: int): """Update the status of a session.""" - logging.info(f"Update status for session #{pid} …") try: session = self.sessions[pid] except KeyError: + logging.info(f"Update status for session #{pid} …") logging.warning(" Session is dead.") return # Check if VNC process is still running running = session.vnc_process_running if running: - logging.info(" Session is running.") + pass elif session.status_text == "stopped" and session.pid in self.sessions: + logging.info(f"Update status for session #{pid} …") logging.warning(" Session is dead.") del self.sessions[session.pid] else: + logging.info(f"Update status for session #{pid} …") logging.warning(" VNC was stopped, so session is dead.") session.stop() |