Fix: ROGCC: Remove unwrap causing panic on main thread

Closes #293
This commit is contained in:
Luke D. Jones
2022-12-08 11:14:01 +13:00
parent 8e8681c190
commit c7893b16f9
4 changed files with 14 additions and 11 deletions

View File

@@ -279,7 +279,7 @@ pub fn start_notifications(
if let Ok(lock) = page_states.try_lock() {
use supergfxctl::pci_device::Device;
let dev = Device::find().unwrap();
let dev = Device::find().unwrap_or_default();
let mut found_dgpu = false; // just for logging
for dev in dev {
if dev.is_dgpu() {