Skip to content

Commit

Permalink
Fix plugin configuration falure (neo-project#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiao-Jin authored and Tommo-L committed Jun 22, 2020
1 parent b5d4fd5 commit 9fd8a2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/neo/Plugins/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ private static void ConfigWatcher_Changed(object sender, FileSystemEventArgs e)
switch (GetExtension(e.Name))
{
case ".json":
Plugins.FirstOrDefault(p => p.ConfigFile == e.FullPath)?.Configure();
try
{
Plugins.FirstOrDefault(p => p.ConfigFile == e.FullPath)?.Configure();
}
catch (FormatException) { }
break;
case ".dll":
if (e.ChangeType != WatcherChangeTypes.Created) return;
Expand Down

0 comments on commit 9fd8a2a

Please sign in to comment.