aboutsummaryrefslogtreecommitdiff
path: root/service.py
diff options
context:
space:
mode:
authorJonathan Weth <git@jonathanweth.de>2020-07-23 14:41:55 +0200
committerJonathan Weth <git@jonathanweth.de>2020-07-23 14:41:55 +0200
commit81e570931adc37054460e3f05d0325888050e386 (patch)
tree5f76ca768d8cbf647bc232d08350f9fc3ab3911d /service.py
parentda6b2bb9d46d096783e12553ba458eb6f3b13e32 (diff)
downloadRWA.Support.SessionService-81e570931adc37054460e3f05d0325888050e386.tar.gz
RWA.Support.SessionService-81e570931adc37054460e3f05d0325888050e386.tar.bz2
RWA.Support.SessionService-81e570931adc37054460e3f05d0325888050e386.zip
Implement bi-directional stopping of sessions
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.")