aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Weth <git@jonathanweth.de>2021-06-28 11:49:22 +0200
committerJonathan Weth <git@jonathanweth.de>2021-06-28 11:49:22 +0200
commitcc4e3d56a1e8dd3338c1a0efb01e443ff5730521 (patch)
tree7dba7993015414d1ff0c21b3447fdba2887e4a48
parent4b329132854bc4f07bdd70a837e4553c6d106591 (diff)
downloadRWA.Support.SessionService-cc4e3d56a1e8dd3338c1a0efb01e443ff5730521.tar.gz
RWA.Support.SessionService-cc4e3d56a1e8dd3338c1a0efb01e443ff5730521.tar.bz2
RWA.Support.SessionService-cc4e3d56a1e8dd3338c1a0efb01e443ff5730521.zip
Stop VNC server on request failure
-rw-r--r--rwa/support/sessionservice/session.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rwa/support/sessionservice/session.py b/rwa/support/sessionservice/session.py
index e603568..cabef5f 100644
--- a/rwa/support/sessionservice/session.py
+++ b/rwa/support/sessionservice/session.py
@@ -145,6 +145,7 @@ class Session:
},
)
except requests.exceptions.ConnectionError:
+ self.stop(triggered=True)
raise ConnectionError()
logging.info(
@@ -153,6 +154,7 @@ class Session:
)
if r.status_code != 200:
+ self.stop(triggered=True)
raise ConnectionError()
self.meta = r.json()