From 89741efdc74b6f76773fa18fca7cb3f04ce745da Mon Sep 17 00:00:00 2001 From: codeking Date: Tue, 24 Sep 2024 02:09:39 +0200 Subject: [PATCH] Enforce clean termination of forked processes --- core/controllers/ApplicationController.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/controllers/ApplicationController.py b/core/controllers/ApplicationController.py index 306a466..42e9560 100644 --- a/core/controllers/ApplicationController.py +++ b/core/controllers/ApplicationController.py @@ -13,6 +13,8 @@ import re import shutil import stat import subprocess +import sys +import time class ApplicationController: @@ -68,6 +70,9 @@ class ApplicationController: from core.controllers.ProfileController import ProfileController ProfileController.disable(profile, False, profile_observer=profile_observer) + time.sleep(1.0) + sys.exit() + @staticmethod def _sync(proxies: Optional[dict] = None):