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:
Jokke
2021-05-04 11:56:47 +02:00
committed by GitHub
co-authored by PhyxionNL
parent 2ada42f869
commit ede484bfb8
2 changed files with 2 additions and 2 deletions
@@ -104,7 +104,7 @@ namespace LibreHardwareMonitor.Hardware.Controller.Nzxt
public override void Close()
{
base.Close();
_stream.Close();
_stream?.Close();
}
private void ContinuousRead(object state)
+1 -1
View File
@@ -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);
}