aboutsummaryrefslogtreecommitdiff
path: root/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'service.py')
-rwxr-xr-xservice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/service.py b/service.py
index 7b4ba49..1faae4d 100755
--- a/service.py
+++ b/service.py
@@ -72,6 +72,8 @@ class RWAService(dbus.service.Object):
running = session.vnc_process_running
if running:
print("Session is running")
+ elif session.status_text == "stopped" and session.pid in self.sessions:
+ del self.sessions[session.pid]
else:
print("Session is dead.")