Skip to content

Commit

Permalink
修改代码
Browse files Browse the repository at this point in the history
  • Loading branch information
pangdogs committed May 22, 2024
1 parent cf97bb0 commit 74a5ebb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime_running.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ func (rt *RuntimeBehavior) shutPlugin() {
return
}

plugin.UnsafePluginBundle(pluginBundle).SetInstallCB(nil)
plugin.UnsafePluginBundle(pluginBundle).SetUninstallCB(nil)

pluginBundle.ReversedRange(func(pluginInfo plugin.PluginInfo) bool {
rt.deactivatePlugin(pluginInfo)
return true
Expand Down
3 changes: 3 additions & 0 deletions service_running.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (serv *ServiceBehavior) shutPlugin() {
return
}

plugin.UnsafePluginBundle(pluginBundle).SetInstallCB(nil)
plugin.UnsafePluginBundle(pluginBundle).SetUninstallCB(nil)

pluginBundle.ReversedRange(func(pluginInfo plugin.PluginInfo) bool {
serv.deactivatePlugin(pluginInfo)
return true
Expand Down

0 comments on commit 74a5ebb

Please sign in to comment.