Skip to content

Commit

Permalink
Don't watch "deleted" events
Browse files Browse the repository at this point in the history
  • Loading branch information
clemensv committed Sep 4, 2024
1 parent 993fa63 commit da54dad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Microsoft.Azure.Relay.Bridge/Configuration/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit da54dad

Please sign in to comment.