mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Fix controller map duplication
This commit is contained in:
parent
09e4c68f7b
commit
d65e2877e6
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ func duplicateControllers() (all []*Controller) {
|
|||
controllersLock.RLock()
|
||||
defer controllersLock.RUnlock()
|
||||
|
||||
all = make([]*Controller, len(controllers))
|
||||
all = make([]*Controller, 0, len(controllers))
|
||||
for _, c := range controllers {
|
||||
all = append(all, c)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue