mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
lock meta mutex during marshaling
This commit is contained in:
parent
d0e311e283
commit
74ada7e865
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ func NewMeta() *Meta {
|
|||
}
|
||||
|
||||
func (m *Meta) MarshalJSON() ([]byte, error) {
|
||||
m.Lock()
|
||||
defer m.Unlock()
|
||||
return json.Marshal(metaJSON{Values: m.m})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue