mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Fix locking when pushing subsystem updates
This commit is contained in:
parent
ea02f59b14
commit
4756896d32
1 changed files with 2 additions and 1 deletions
|
@ -207,11 +207,12 @@ func (mng *Manager) handleModuleUpdate(m *modules.Module) {
|
|||
}
|
||||
|
||||
subsys.Lock()
|
||||
defer subsys.Unlock()
|
||||
|
||||
updated := compareAndUpdateStatus(m, ms)
|
||||
if updated {
|
||||
subsys.makeSummary()
|
||||
}
|
||||
subsys.Unlock()
|
||||
|
||||
if updated {
|
||||
mng.pushUpdate(subsys)
|
||||
|
|
Loading…
Add table
Reference in a new issue