MM-11905: deactivate plugins before unregistering (#9666)
Plugins that listen for config changes might incorrectly re-register their commands before being /actually/ deactivated, leaving the new commands alive thereafter.
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6aaa10bddb
Коммит
b843774de8
@@ -120,9 +120,8 @@ func (a *App) removePlugin(id string) *model.AppError {
|
|||||||
a.Publish(message)
|
a.Publish(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
a.UnregisterPluginCommands(id)
|
|
||||||
|
|
||||||
a.Plugins.Deactivate(id)
|
a.Plugins.Deactivate(id)
|
||||||
|
a.UnregisterPluginCommands(id)
|
||||||
|
|
||||||
err = os.RemoveAll(pluginPath)
|
err = os.RemoveAll(pluginPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user