refactor: streamline error handling and resource management in various modules

This commit is contained in:
Tunglies
2025-11-06 10:19:06 +08:00
parent 671ac2ebed
commit 69a706b438
13 changed files with 66 additions and 50 deletions
+1
View File
@@ -47,6 +47,7 @@ fn after_change_clash_mode() {
for connection in connections_array {
let _ = mihomo.close_connection(&connection.id).await;
}
drop(mihomo);
}
}
Err(err) => {