Skip to content

Commit 316e840

Browse files
authored
Merge pull request crossplane#6273 from sttts/sttts-engine-unlock
engine: fix misplaced Unlock
2 parents 2b09c8a + 962e118 commit 316e840

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
@@ -268,7 +268,6 @@ func (e *ControllerEngine) Stop(ctx context.Context, name string) error {
268268
// Stop the controller's watches.
269269
for wid, w := range c.sources {
270270
if err := w.Stop(ctx); err != nil {
271-
c.mx.Unlock()
272271
return errors.Wrapf(err, "cannot stop %q watch for %q", wid.Type, wid.GVK)
273272
}
274273
delete(c.sources, wid)

0 commit comments

Comments
 (0)