mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Fix repeatedly aquire the inhibit lock
This commit is contained in:
parent
0232df5093
commit
4e17e58552
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue