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 b932fb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 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 @@ -339,6 +340,7 @@ func (eventState *eventMonitoringState) sendEvent(event *APIEvents) {
select {
case listener <- event:
default:
fmt.Printf("event not sent to listener %#v \n", event)
}
}
}
Expand Down

0 comments on commit b932fb8

Please sign in to comment.