Fixed Issue 415.

This commit is contained in:
Michael Möller
2012-11-19 21:05:41 +00:00
parent eac9cc4d11
commit acc4149327
2 changed files with 7 additions and 3 deletions

View File

@@ -10,5 +10,5 @@
using System.Reflection;
[assembly: AssemblyVersion("0.5.1.9")]
[assembly: AssemblyInformationalVersion("0.5.1.9 Alpha")]
[assembly: AssemblyVersion("0.5.1.10")]
[assembly: AssemblyInformationalVersion("0.5.1.10 Alpha")]

View File

@@ -5,7 +5,8 @@
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (C) 2009-2010 Paul Werelds <paul@werelds.net>
Copyright (C) 2012 Michael M<>ller <mmoeller@openhardwaremonitor.org>
*/
using System;
@@ -102,6 +103,9 @@ namespace OpenHardwareMonitor.WMI {
item => item.Identifier == identifier.ToString()
);
if (instanceIndex == -1)
return;
try {
Instrumentation.Revoke(activeInstances[instanceIndex]);
} catch (Exception) { }