You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
info!("[DEFINITIONS] Loaded and mapped {} aircraft vars, {} local vars, and {} events from the server", definitions.get_number_avars(), definitions.get_number_lvars(), definitions.get_number_events());
429
426
control.on_connected(&conn);
430
-
definitions.on_connected(&conn).ok();
427
+
428
+
let def_connect_result = definitions.on_connected(&conn);
429
+
ifletErr(()) = def_connect_result {
430
+
client.stop("Error starting WS server. Do you have another YourControls open?".to_string())
431
+
}
431
432
// Freeze aircraft
432
433
control.lose_control(&conn);
433
434
}
@@ -556,16 +557,13 @@ fn main() {
556
557
557
558
if config_to_load == ""{
558
559
app_interface.server_fail("Select an aircraft config first!");
0 commit comments