Skip to content

Commit

Permalink
network: remove mutex lock that breaks webui and api
Browse files Browse the repository at this point in the history
  • Loading branch information
bonedaddy committed Jan 13, 2021
1 parent 3cfbcd9 commit 07f7483
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions network/wifi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07f7483

Please sign in to comment.