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 e2dd0d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package docker
import (
"encoding/json"
"errors"
"fmt"
"io"
"math"
"net"
Expand Down Expand Up @@ -336,10 +337,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 e2dd0d9

Please sign in to comment.