Skip to content

Commit

Permalink
fix event lost
Browse files Browse the repository at this point in the history
  • Loading branch information
ningmingxiao committed Aug 20, 2024
1 parent e9d929d commit 03b52ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,7 @@ func (eventState *eventMonitoringState) sendEvent(event *APIEvents) {
}

for _, listener := range eventState.listeners {
select {
case listener <- event:
default:
}
listener <- event
}
}
}
Expand Down

0 comments on commit 03b52ae

Please sign in to comment.