mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 22:35:11 +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
|
||||
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; }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user