mirror of
https://github.com/safing/portbase
synced 2025-09-05 04:00:14 +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()
|
subsys.Lock()
|
||||||
|
defer subsys.Unlock()
|
||||||
|
|
||||||
updated := compareAndUpdateStatus(m, ms)
|
updated := compareAndUpdateStatus(m, ms)
|
||||||
if updated {
|
if updated {
|
||||||
subsys.makeSummary()
|
subsys.makeSummary()
|
||||||
}
|
}
|
||||||
subsys.Unlock()
|
|
||||||
|
|
||||||
if updated {
|
if updated {
|
||||||
mng.pushUpdate(subsys)
|
mng.pushUpdate(subsys)
|
||||||
|
|
Loading…
Add table
Reference in a new issue