mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
opt: add join handler to prevent server stopped
This commit is contained in:
@@ -91,7 +91,6 @@ pub fn start_tray(options: Arc<Mutex<HashMap<String, String>>>) {
|
||||
// init gtk context
|
||||
if let Err(err) = gtk::init() {
|
||||
error!("Error when starting the tray: {}", err);
|
||||
gtk::main_quit();
|
||||
return;
|
||||
}
|
||||
if let Some(mut appindicator) = get_default_app_indicator() {
|
||||
@@ -116,7 +115,7 @@ pub fn start_tray(options: Arc<Mutex<HashMap<String, String>>>) {
|
||||
info!("Setting tray event loop");
|
||||
gtk::main();
|
||||
} else {
|
||||
eprintln!("tray process exit now");
|
||||
error!("Tray process exit now");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user