Skip to content

Commit

Permalink
add nil check for aggregator during WaitStop
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Shorsher <alex.shorsher@kaleido.io>
  • Loading branch information
shorsher committed Aug 18, 2022
1 parent d4f5c87 commit 409594e
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 409594e

Please sign in to comment.