diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 468fb3a..2cc1b9e 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -114,7 +114,7 @@ async fn parse_args(inp: &Vec) -> Result { ); } - if !args.value_of::("host")?.is_empty() { + if args.value_of::("host").is_ok() && !args.value_of::("host")?.is_empty() { let host = args.value_of::("host")?; set_proxy_addr(host); } @@ -224,7 +224,7 @@ fn main() -> Result<(), ArgsError> { disconnect(); // Always unpatch game upon closing the program - patch::unpatch_game(); + block_on(patch::unpatch_game()); Ok(()) }