lib: Fix panic due to closed event subscriptions on shutdown (#8079)
This commit is contained in:
@@ -162,8 +162,10 @@ func (a *aggregator) mainLoop(in <-chan fs.Event, out chan<- []string, cfg confi
|
||||
select {
|
||||
case event := <-in:
|
||||
a.newEvent(event, inProgress)
|
||||
case event := <-inProgressItemSubscription.C():
|
||||
updateInProgressSet(event, inProgress)
|
||||
case event, ok := <-inProgressItemSubscription.C():
|
||||
if ok {
|
||||
updateInProgressSet(event, inProgress)
|
||||
}
|
||||
case <-a.notifyTimer.C:
|
||||
a.actOnTimer(out)
|
||||
case interval := <-a.notifyTimerResetChan:
|
||||
|
||||
Reference in New Issue
Block a user