diff --git a/DNSChanger/DNSValidate.cs b/DNSChanger/DNSValidate.cs index 8e691ce..d03fdf3 100644 --- a/DNSChanger/DNSValidate.cs +++ b/DNSChanger/DNSValidate.cs @@ -114,7 +114,10 @@ public static void Enable(Interface @interface) public static void Disable() { - RegistryKey.DeleteValue(GlobalVars.Name); + if (Get() != null) + { + RegistryKey.DeleteValue(GlobalVars.Name); + } } private static string AggregateDnsEntries(Interface @interface)