From 64caeea4910607aa9b2d279effcb0436958c7cd2 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 1 Dec 2022 23:28:20 +0100 Subject: [PATCH] BrowserSteps - Cleanup interface on shutdown --- changedetectionio/blueprint/browser_steps/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/blueprint/browser_steps/__init__.py b/changedetectionio/blueprint/browser_steps/__init__.py index 9cd17aae..9087acac 100644 --- a/changedetectionio/blueprint/browser_steps/__init__.py +++ b/changedetectionio/blueprint/browser_steps/__init__.py @@ -45,18 +45,18 @@ def cleanup_playwright_session(): global browsersteps_playwright_browser_interface_start_time browsersteps_live_ui_o = {} + browsersteps_playwright_browser_interface = None browsersteps_playwright_browser_interface_browser = None browsersteps_playwright_browser_interface_end_time = None browsersteps_playwright_browser_interface_start_time = None - print("Cleaning up old playwright session because time was up, calling .goodbye()") + print("Cleaning up old playwright session because time was up, calling .goodbye()") try: browsersteps_playwright_browser_interface_context.goodbye() except Exception as e: print ("Got exception in shutdown, probably OK") print (str(e)) - browsersteps_playwright_browser_interface = None browsersteps_playwright_browser_interface_context = None print ("Cleaning up old playwright session because time was up - done")