diff --git a/src/Microsoft.Azure.Relay.Bridge/Configuration/Config.cs b/src/Microsoft.Azure.Relay.Bridge/Configuration/Config.cs index 24b9780..005f351 100644 --- a/src/Microsoft.Azure.Relay.Bridge/Configuration/Config.cs +++ b/src/Microsoft.Azure.Relay.Bridge/Configuration/Config.cs @@ -484,7 +484,6 @@ public static Config LoadConfig(CommandLineSettings commandLineSettings) { var fsw = new FileSystemWatcher(Path.GetDirectoryName(machineConfigFileName), Path.GetFileName(machineConfigFileName)); fsw.Created += (o, e) => onchange(); - fsw.Deleted += (o, e) => onchange(); fsw.Changed += (o, e) => onchange(); fsw.EnableRaisingEvents = true; config.fileSystemWatchers.Add(fsw); @@ -504,7 +503,6 @@ public static Config LoadConfig(CommandLineSettings commandLineSettings) { var fsw = new FileSystemWatcher(Path.GetDirectoryName(userConfigFileName), Path.GetFileName(userConfigFileName)); fsw.Created += (o, e) => onchange(); - fsw.Deleted += (o, e) => onchange(); fsw.Changed += (o, e) => onchange(); fsw.EnableRaisingEvents = true; config.fileSystemWatchers.Add(fsw); @@ -518,7 +516,6 @@ public static Config LoadConfig(CommandLineSettings commandLineSettings) { var fsw = new FileSystemWatcher(Path.GetDirectoryName(commandLineSettings.ConfigFile), Path.GetFileName(commandLineSettings.ConfigFile)); fsw.Created += (o, e) => onchange(); - fsw.Deleted += (o, e) => onchange(); fsw.Changed += (o, e) => onchange(); fsw.EnableRaisingEvents = true; config.fileSystemWatchers.Add(fsw);