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")