Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
corcoja committed Apr 5, 2022
1 parent e8e95e5 commit e1baa92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ final protected void stopConsumerSubscription(Connection connection) {

@Override
final public Boolean isSubscriptionActive() {
return super.isSubscribed() && jetstreamSubscription != null && jetstreamSubscription.isActive()
return super.isSubscribed() && jetstreamSubscription != null
&& pullSubscriptionThread.isAlive();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ final protected void stopConsumerSubscription(Connection connection) {

@Override
public Boolean isSubscriptionActive() {
return super.isSubscribed() && jetstreamSubscription != null
&& jetstreamSubscription.isActive();
return super.isSubscribed() && jetstreamSubscription != null && dispatcher != null;
}
}

0 comments on commit e1baa92

Please sign in to comment.