mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
network: remove mutex lock that breaks webui and api
This commit is contained in:
parent
3cfbcd900d
commit
07f7483ba3
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue