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

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
}