faster and more secure junk creation

This commit is contained in:
Mark Puha 2025-03-18 08:34:23 +01:00
parent e3f1273f8a
commit 71be0eb3a6
10 changed files with 212 additions and 95 deletions

View file

@ -95,6 +95,7 @@ type Device struct {
isASecOn abool.AtomicBool
aSecMux sync.RWMutex
aSecCfg aSecCfgType
junkCreator junkCreator
}
type aSecCfgType struct {
@ -799,6 +800,7 @@ func (device *Device) handlePostConfig(tempASecCfg *aSecCfgType) (err error) {
}
device.isASecOn.SetTo(isASecOn)
device.junkCreator, err = NewJunkCreator(device)
device.aSecMux.Unlock()
return err