Skip to content

Commit

Permalink
解决部分安装插件错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhongxue committed May 31, 2024
1 parent ec85946 commit e7461bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/la/moony/douban/DoubanPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import la.moony.douban.extension.DoubanMovie;
import org.apache.commons.lang3.BooleanUtils;
import org.springframework.stereotype.Component;
import run.halo.app.extension.Scheme;
import run.halo.app.extension.SchemeManager;
import run.halo.app.extension.index.IndexSpec;
import run.halo.app.plugin.BasePlugin;
Expand Down Expand Up @@ -90,7 +91,7 @@ public void start() {

@Override
public void stop() {
schemeManager.unregister(schemeManager.get(DoubanMovie.class));
schemeManager.unregister(schemeManager.get(CronDouban.class));
schemeManager.unregister(Scheme.buildFromType(DoubanMovie.class));
schemeManager.unregister(Scheme.buildFromType(CronDouban.class));
}
}

0 comments on commit e7461bb

Please sign in to comment.