Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 71373c6

Browse files
authored
Merge pull request moby#40604 from thaJeztah/19.03_backport_mis_unlock
[19.03 backport] daemon/cluster: add a missing Unlock
2 parents 498fbec + 1e3971d commit 71373c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

daemon/cluster/swarm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func (c *Cluster) Init(req types.InitRequest) (string, error) {
3333
// API handlers to finish before shutting down the node.
3434
c.mu.Lock()
3535
if !c.nr.nodeState.IsManager() {
36+
c.mu.Unlock()
3637
return "", errSwarmNotManager
3738
}
3839
c.mu.Unlock()

0 commit comments

Comments
 (0)