mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-01 06:45:12 +00:00
Fixed Issue 415.
This commit is contained in:
@@ -10,5 +10,5 @@
|
|||||||
|
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("0.5.1.9")]
|
[assembly: AssemblyVersion("0.5.1.10")]
|
||||||
[assembly: AssemblyInformationalVersion("0.5.1.9 Alpha")]
|
[assembly: AssemblyInformationalVersion("0.5.1.10 Alpha")]
|
@@ -5,7 +5,8 @@
|
|||||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
Copyright (C) 2009-2010 Paul Werelds <paul@werelds.net>
|
Copyright (C) 2009-2010 Paul Werelds <paul@werelds.net>
|
||||||
|
Copyright (C) 2012 Michael M<>ller <mmoeller@openhardwaremonitor.org>
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
@@ -102,6 +103,9 @@ namespace OpenHardwareMonitor.WMI {
|
|||||||
item => item.Identifier == identifier.ToString()
|
item => item.Identifier == identifier.ToString()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (instanceIndex == -1)
|
||||||
|
return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Instrumentation.Revoke(activeInstances[instanceIndex]);
|
Instrumentation.Revoke(activeInstances[instanceIndex]);
|
||||||
} catch (Exception) { }
|
} catch (Exception) { }
|
||||||
|
Reference in New Issue
Block a user