From 826de01c90bfcb4fa526c9055a9f81c8d5d230f8 Mon Sep 17 00:00:00 2001 From: Ronald Date: Sat, 9 Nov 2024 13:07:38 +0000 Subject: [PATCH] Ensure we exit as soon as possible when signal is received --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index cdd0177..12ee8f5 100644 --- a/main.py +++ b/main.py @@ -271,7 +271,7 @@ def main(): libreview_session = LibreViewSession() libreview_session.authenticate(config['CREDENTIALS']['EMAIL'], config['CREDENTIALS']['PASSWORD']) - if libreview_session.authenticated: + if libreview_session.authenticated and not SHOULD_EXIT: logging.info("successfully authenticated with LibreView") else: logging.fatal("failed to authenticate with LibreView")