mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
fix: locking session object instance while session.Run
This commit is contained in:
parent
b6979f2baf
commit
d5016bc506
2 changed files with 11 additions and 0 deletions
|
@ -27,6 +27,9 @@ func NewAccessPoint(essid, bssid string, frequency int, rssi int8) *AccessPoint
|
|||
}
|
||||
|
||||
func (ap *AccessPoint) MarshalJSON() ([]byte, error) {
|
||||
ap.Lock()
|
||||
defer ap.Unlock()
|
||||
|
||||
doc := apJSON{
|
||||
Station: ap.Station,
|
||||
Clients: make([]*Station, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue