Update main.rs (#12027)

common::global_init() might fail silently. Since return is used without any error logging, the user won’t know why the application didn't start so that is why added error print statement in case if it fails
This commit is contained in:
Syed Ghufran Hassan 2025-06-10 07:56:10 +05:00 committed by GitHub
parent 83f45b2212
commit 738afb54d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@ use librustdesk::*;
#[cfg(any(target_os = "android", target_os = "ios", feature = "flutter"))]
fn main() {
if !common::global_init() {
eprintln!("Global initialization failed.");
return;
}
common::test_rendezvous_server();