We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ebfb1d3 + cde17bb commit ca2c514Copy full SHA for ca2c514
src/Services/PluginLoader.cs
@@ -67,6 +67,11 @@ public Task StopAsync(CancellationToken cancellationToken) {
67
private void ScanAndLoadPlugins() {
68
ILoggerFactory loggerFactory;
69
70
+ if (!Directory.Exists(_appConfig.PLUGIN_DIRECTORY)) {
71
+ // If the plugin directory doesn't exist, we can't load plugins. Quietly return and try again later
72
+ return;
73
+ }
74
+
75
foreach (string file in System.IO.Directory.GetFiles(_appConfig.PLUGIN_DIRECTORY, "*.json.spacefx_plugin")) {
76
string plugin_json = System.IO.File.ReadAllText(file);
77
Models.PLUG_IN? config_plugin;
0 commit comments