Skip to content

Commit

Permalink
Merge pull request #981 from kaleido-io/nil-aggregator
Browse files Browse the repository at this point in the history
add nil check for aggregator during WaitStop
  • Loading branch information
shorsher authored Aug 18, 2022
2 parents d4f5c87 + 409594e commit 71498e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/events/event_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ func (em *eventManager) WaitStop() {
em.blobReceiver.stop()
em.blobReceiver = nil
}
<-em.aggregator.eventPoller.closed
if em.aggregator != nil {
<-em.aggregator.eventPoller.closed
}
}

func (em *eventManager) CreateUpdateDurableSubscription(ctx context.Context, subDef *core.Subscription, mustNew bool) (err error) {
Expand Down

0 comments on commit 71498e9

Please sign in to comment.