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()`, `retryWithBackoff()` is returned from with `false, nil` in case the subscription is closed. In this case, `var cons Consumer` is still `nil`, and the code crashes in the attempt to cast it to a `pullConsumer` later on. Fix this by catching the `nil` case explicitly. Signed-off-by: Daniel Mack <[email protected]>
- Loading branch information