Skip to content

Commit

Permalink
fix consumer not found
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Oct 27, 2024
1 parent fb161fe commit c1ed5d0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ private void setupConsumer(Connection connection) throws IOException, Interrupte

// Check if consumer already exists
if (durableConsumerName != null && !durableConsumerName.isEmpty()) {
consumerContext = streamContext.getConsumerContext(durableConsumerName);
try {
consumerContext = streamContext.getConsumerContext(durableConsumerName);
} catch (JetStreamApiException e) {
consumerContext = null;
}
}

if (consumerContext == null) {
Expand Down

0 comments on commit c1ed5d0

Please sign in to comment.