Bugfix - abandoned ISABus mutex deadlock (#51)

This commit is contained in:
Fabian
2018-08-20 13:46:19 +02:00
committed by Phyxion
parent 4652be058c
commit f6d3338cda
+2 -2
View File
@@ -1,4 +1,4 @@
/*
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -271,7 +271,7 @@ namespace OpenHardwareMonitor.Hardware {
return true;
try {
return isaBusMutex.WaitOne(millisecondsTimeout, false);
} catch (AbandonedMutexException) { return false; }
} catch (AbandonedMutexException) { return true; }
catch (InvalidOperationException) { return false; }
}