Skip to content

Commit

Permalink
fix: unable to stop normally when the startup fails (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
LIlGG authored May 6, 2024
1 parent a0436e3 commit 52b86e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/run/halo/moments/MomentsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.Set;
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 @@ -68,6 +69,6 @@ public void start() {

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

0 comments on commit 52b86e6

Please sign in to comment.