aboutsummaryrefslogtreecommitdiff
path: root/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'service.py')
-rwxr-xr-xservice.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/service.py b/service.py
index daa35e5..f1d1f4f 100755
--- a/service.py
+++ b/service.py
@@ -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()