Plugins: unlock on plugin startup failure (#54555)

This commit is contained in:
Ryan McKinley
2022-08-31 16:02:07 -04:00
committed by GitHub
parent d19a125ada
commit 55fe1506ba
+2 -1
View File
@@ -54,12 +54,13 @@ func (m *Manager) Start(ctx context.Context, pluginID string) error {
m.log.Info("Plugin registered", "pluginID", p.ID)
m.mu.Lock()
defer m.mu.Unlock()
if err := startPluginAndRestartKilledProcesses(ctx, p); err != nil {
return err
}
p.Logger().Debug("Successfully started backend plugin process")
m.mu.Unlock()
return nil
}