Skip to content

Commit

Permalink
modify unexpected exception detector
Browse files Browse the repository at this point in the history
  • Loading branch information
MidCoard committed Oct 1, 2022
1 parent 4beed66 commit cf58347
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ public boolean load() {
} else if (e instanceof PluginLoadException)
// this plugin is null and PluginLoadException means there is something wrong in the new instance of the plugin
FocessQQ.getLogger().thrLang("exception-load-plugin-file", e);
else
else if (!(e instanceof IllegalStateException))
// for internal load error
FocessQQ.getLogger().thrLang("exception-load-plugin-unexpected-exception", e);
PluginCoreClassLoader.LOADERS.remove(this);
GC_SCHEDULER.run(System::gc, Duration.ofSeconds(1),"load-failed");
Expand Down

0 comments on commit cf58347

Please sign in to comment.