Skip to content

Commit

Permalink
关闭时清理插件
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Oct 23, 2021
1 parent 347f684 commit 8f091b4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
1 change: 1 addition & 0 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var runCmd = &cobra.Command{
Short: "运行处理器",
Long: `运行处理器`,
Run: func(cmd *cobra.Command, args []string) {
defer gou.KillPlugins()
Boot()
engine.Load(config.Conf)
if len(args) < 1 {
Expand Down
52 changes: 26 additions & 26 deletions data/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ func Start() {
func Stop(onComplete func()) {
shutdown <- true
<-shutdownComplete
gou.KillPlugins()
onComplete()
}

0 comments on commit 8f091b4

Please sign in to comment.