feat(window): clear all WebSocket connections before stopping core (#7862)

This commit is contained in:
oomeow
2026-09-07 10:04:09 +08:00
committed by GitHub
parent 714a84c91f
commit 800e11a718
+2
View File
@@ -199,6 +199,8 @@ pub async fn clean_session_ending_best_effort() -> CleanupResult {
let result = run_session_ending_cleanup_transition(
|| async {
logging!(info, Type::System, "Clearing all WebSocket connections before stopping core");
let _ = handle::Handle::mihomo().clear_all_ws_connections();
logging!(info, Type::System, "Stopping core during session-ending best-effort cleanup");
match CoreManager::global().stop_core().await {
Ok(()) => {