mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-04 16:25:12 +00:00
Merge pull request #1129 from folfy/master
Bugfix - abandoned ISABus mutex deadlock
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
This Source Code Form is subject to the terms of the Mozilla Public
|
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
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
@@ -257,7 +257,7 @@ namespace OpenHardwareMonitor.Hardware {
|
|||||||
return true;
|
return true;
|
||||||
try {
|
try {
|
||||||
return isaBusMutex.WaitOne(millisecondsTimeout, false);
|
return isaBusMutex.WaitOne(millisecondsTimeout, false);
|
||||||
} catch (AbandonedMutexException) { return false; }
|
} catch (AbandonedMutexException) { return true; }
|
||||||
catch (InvalidOperationException) { return false; }
|
catch (InvalidOperationException) { return false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user