Merge pull request #98088 from wzshiming/fix-inhibit-lock

Fix repeatedly aquire the inhibit lock
This commit is contained in:
Kubernetes Prow Robot 2021-01-22 00:37:26 -08:00 committed by GitHub
commit 82ebcd1719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}