From cd1e91b3d29aeb9f8c0dea38fba608e9ab41ab3e Mon Sep 17 00:00:00 2001 From: Ilya Zlobintsev Date: Wed, 1 Dec 2021 11:26:01 +0200 Subject: [PATCH] Don't crash on apply when there's no GPU fan --- gui/src/app.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/src/app.rs b/gui/src/app.rs index 68091f1..ddcb2ce 100644 --- a/gui/src/app.rs +++ b/gui/src/app.rs @@ -144,16 +144,16 @@ impl App { if thermals_settings.automatic_fan_control_enabled { app.daemon_connection .stop_fan_control(gpu_id) - .expect("Failed to stop fan control"); + .unwrap_or(println!("Failed to stop fan control")); } else { app.daemon_connection .start_fan_control(gpu_id) - .expect("Failed to start fan control"); + .unwrap_or(println!("Failed to start fan control")); } app.daemon_connection .set_fan_curve(gpu_id, thermals_settings.curve) - .expect("Failed to set fan curve"); + .unwrap_or(println!("Failed to set fan curve")); } if let Some(clocks_settings) = app.root_stack.oc_page.get_clocks() {