do nothing on default case in processPodEvent

This commit is contained in:
Felix Kunde 2022-05-16 11:33:14 +02:00
parent bcd34c3110
commit cc4920fb5d
1 changed files with 1 additions and 1 deletions

View File

@ -1046,8 +1046,8 @@ func (c *Cluster) processPodEvent(obj interface{}) error {
select {
case <-subscriber.stopEvent:
c.unregisterPodSubscriber(podName)
case subscriber.podEvents <- event:
default:
subscriber.podEvents <- event
}
}
// hold lock for the time of processing the event to avoid race condition