Bugfix - abandoned ISABus mutex deadlock (#51)
This commit is contained in:
+2
-2
@@ -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; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user