close lmsensors+lpcIO after hardware.close() (#1886)
internally hardware.close() may use lpcIO like SuperIOHardware which does SetControl(index, null).
This commit is contained in:
@@ -196,13 +196,13 @@ public class Motherboard : IHardware
|
||||
/// </summary>
|
||||
public void Close()
|
||||
{
|
||||
_lmSensors?.Close();
|
||||
_lpcIO?.Close();
|
||||
|
||||
foreach (IHardware iHardware in SubHardware)
|
||||
{
|
||||
if (iHardware is Hardware hardware)
|
||||
hardware.Close();
|
||||
}
|
||||
|
||||
_lmSensors?.Close();
|
||||
_lpcIO?.Close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user