Skip to content

Commit

Permalink
fix(cli): handling of concurrent map read/write (#3979)
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren authored Aug 21, 2024
1 parent 678bb8c commit 411d910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/ui/dashboard/sensors/sensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (r *sensor) On(eventName string, cb func(Event)) {

func (r *sensor) Emit(eventName string, event interface{}) {
r.mutex.Lock()
r.mutex.Unlock()
defer r.mutex.Unlock()

listeners := r.listeners[eventName]
e := Event{
Expand Down

0 comments on commit 411d910

Please sign in to comment.