mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix repeatedly aquire the inhibit lock
This commit is contained in:
parent
0232df5093
commit
4e17e58552
@ -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 New Issue
Block a user