mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Fix repeatedly aquire the inhibit lock
This commit is contained in:
@@ -173,6 +173,9 @@ func (m *Manager) aquireInhibitLock() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.inhibitLock != 0 {
|
||||
m.dbusCon.ReleaseInhibitLock(m.inhibitLock)
|
||||
}
|
||||
m.inhibitLock = lock
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user