Skip to content

Commit

Permalink
[FIX] in some environments the assertion for the subject doesn't seem…
Browse files Browse the repository at this point in the history
… to auto-reject properly even if there's a handler.
  • Loading branch information
aricart committed Nov 2, 2021
1 parent 17e9aa0 commit 68c6761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nats-base-client/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export class SubscriptionImpl extends QueuedIteratorImpl<Msg>
.catch((err) => {
// timer fired
this.stop(err);
if (this.noIterator) {
this.callback(err, {} as Msg);
}
// if (this.noIterator) {
this.callback(err, {} as Msg);
// }
});
}
if (!this.noIterator) {
Expand Down

0 comments on commit 68c6761

Please sign in to comment.