refactor: streamline error handling and resource management in various modules
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user