Always unlock on DriveSession::open()

Silently ignores unlock failures (unencrypted discs).
Fixes disc-info on discs that gate reads behind AACS auth.
This commit is contained in:
MattJackson
2026-04-06 17:06:32 -07:00
parent 37ee573014
commit a07a7aebf2
+8 -2
View File
@@ -55,12 +55,18 @@ impl DriveSession {
}
};
Ok(DriveSession {
let mut session = DriveSession {
scsi: transport,
platform,
profile,
drive_id,
})
};
// Always unlock on open — makes all reads work immediately.
// Silently ignore failures (unencrypted discs don't need it).
let _ = session.unlock();
Ok(session)
}
/// Open with an explicit profile (skip auto-detection).