From f6d3338cda14de8477c735daa2fb7d1b3d526dc5 Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 20 Aug 2018 13:46:19 +0200 Subject: [PATCH] Bugfix - abandoned ISABus mutex deadlock (#51) --- Hardware/Ring0.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hardware/Ring0.cs b/Hardware/Ring0.cs index cde0068..fcdffdc 100644 --- a/Hardware/Ring0.cs +++ b/Hardware/Ring0.cs @@ -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; } }