Fix NullReferenceException, if NZXT CAM is running at the same time (#434)
* Fix NullReferenceException, if NZXT CAM is running at the same time * Remove unnecessary variable declaration Remove never used variable. * Update SMBios.cs Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
This commit is contained in:
@@ -104,7 +104,7 @@ namespace LibreHardwareMonitor.Hardware.Controller.Nzxt
|
||||
public override void Close()
|
||||
{
|
||||
base.Close();
|
||||
_stream.Close();
|
||||
_stream?.Close();
|
||||
}
|
||||
|
||||
private void ContinuousRead(object state)
|
||||
|
||||
@@ -530,7 +530,7 @@ namespace LibreHardwareMonitor.Hardware
|
||||
{
|
||||
int tmp = month;
|
||||
month = day;
|
||||
day = month;
|
||||
day = tmp;
|
||||
}
|
||||
return new DateTime(year < 100 ? 1900 + year : year, month, day);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user