mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #98088 from wzshiming/fix-inhibit-lock
Fix repeatedly aquire the inhibit lock
This commit is contained in:
commit
82ebcd1719
@ -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