MacOS moved to tkinter and pystray; cetifi implementation to fix SSL issues

This commit is contained in:
Flowseal
2026-08-07 00:41:20 +03:00
parent 2496004c93
commit 9f9e1c2482
10 changed files with 480 additions and 544 deletions
+11
View File
@@ -323,6 +323,17 @@ def _run_proxy_thread(show_error: Callable[[str], None]) -> None:
if diagnose_called:
diagnose_called()
finally:
pending = [
task for task in asyncio.all_tasks(loop)
if not task.done()
]
for task in pending:
task.cancel()
if pending:
loop.run_until_complete(asyncio.gather(
*pending, return_exceptions=True
))
loop.run_until_complete(loop.shutdown_asyncgens())
loop.close()
_async_stop = None