Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jetstream: ordered consumer: handle closed subscriptions gracefully
In `orderedConsumer.reset()`, we return from the `retryWithBackoff()` function with `false, nil` in case the subscription is closed. In this case, the `var cons Consumer` is still nil, and we crash in the attempt to cast it to a `pullConsumer` later on. Fix this by catching that `nil` case explicitly.
- Loading branch information