mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-31 03:02:08 +08:00
feat(window): clear all WebSocket connections before stopping core (#7862)
This commit is contained in:
@@ -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(()) => {
|
||||
|
||||
Reference in New Issue
Block a user