network: remove mutex lock that breaks webui and api

This commit is contained in:
bonedaddy 2021-01-12 20:58:30 -08:00
commit 07f7483ba3
No known key found for this signature in database
GPG key ID: 5386234333106B29

View file

@ -67,8 +67,6 @@ func NewWiFi(iface *Endpoint, aliases *data.UnsortedKV, newcb APNewCallback, los
}
func (w *WiFi) MarshalJSON() ([]byte, error) {
w.RLock()
defer w.RUnlock()
doc := wifiJSON{
// we know the length so preallocate to reduce memory allocations