Merge pull request #1129 from folfy/master

Bugfix - abandoned ISABus mutex deadlock
This commit is contained in:
Michael Möller
2020-01-29 21:58:22 +01:00
committed by GitHub

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
@@ -257,7 +257,7 @@ namespace OpenHardwareMonitor.Hardware {
return true;
try {
return isaBusMutex.WaitOne(millisecondsTimeout, false);
} catch (AbandonedMutexException) { return false; }
} catch (AbandonedMutexException) { return true; }
catch (InvalidOperationException) { return false; }
}