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:
parent
83f45b2212
commit
738afb54d7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user