diff options
author | Jonathan Weth <git@jonathanweth.de> | 2021-06-28 11:49:22 +0200 |
---|---|---|
committer | Jonathan Weth <git@jonathanweth.de> | 2021-06-28 11:49:22 +0200 |
commit | cc4e3d56a1e8dd3338c1a0efb01e443ff5730521 (patch) | |
tree | 7dba7993015414d1ff0c21b3447fdba2887e4a48 | |
parent | 4b329132854bc4f07bdd70a837e4553c6d106591 (diff) | |
download | RWA.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.py | 2 |
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() |