Skip to content

Commit 962e118

Browse files
committed
engine: fix misplaced Unlock
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
1 parent c103f21 commit 962e118

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

internal/engine/engine.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ func (e *ControllerEngine) Stop(ctx context.Context, name string) error {
258258
// Stop the controller's watches.
259259
for wid, w := range c.sources {
260260
if err := w.Stop(ctx); err != nil {
261-
c.mx.Unlock()
262261
return errors.Wrapf(err, "cannot stop %q watch for %q", wid.Type, wid.GVK)
263262
}
264263
delete(c.sources, wid)

0 commit comments

Comments
 (0)