From cc4e3d56a1e8dd3338c1a0efb01e443ff5730521 Mon Sep 17 00:00:00 2001 From: Jonathan Weth Date: Mon, 28 Jun 2021 11:49:22 +0200 Subject: Stop VNC server on request failure --- rwa/support/sessionservice/session.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v1.2.3