Skip to content

Commit

Permalink
Merge pull request #980 from kaleido-io/blobreceiver
Browse files Browse the repository at this point in the history
Add nil check for blobReceiver during WaitStop
  • Loading branch information
awrichar authored Aug 18, 2022
2 parents 7b821a4 + 7758d07 commit d4f5c87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/events/event_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ func (em *eventManager) DeletedSubscriptions() chan<- *fftypes.UUID {

func (em *eventManager) WaitStop() {
em.subManager.close()
em.blobReceiver.stop()
if em.blobReceiver != nil {
em.blobReceiver.stop()
em.blobReceiver = nil
}
<-em.aggregator.eventPoller.closed
}

Expand Down

0 comments on commit d4f5c87

Please sign in to comment.