Kp
This commit is contained in:
@@ -186,7 +186,14 @@ namespace NetMonitorUtils
|
||||
Dictionary<String, String> ret = new Dictionary<String, String>();
|
||||
foreach (string adapter in adapters)
|
||||
{
|
||||
String data = this.serviceController.NetworkGetName(adapter);
|
||||
String data = "";
|
||||
try {
|
||||
data = this.serviceController.NetworkGetName(adapter);
|
||||
} catch(NetMonitorUtils.Execptions.ServiceControlException e) {
|
||||
data = "unknown";
|
||||
this.addLog("NetworkSetter.getNetwork", e.Message, LogLevel.Error);
|
||||
}
|
||||
|
||||
if (data == "unknown")
|
||||
{
|
||||
ret.Add(adapter, "unknown");
|
||||
|
||||
Reference in New Issue
Block a user