Skip to content

Commit d688cca

Browse files
committed
Fix tracking check
Conflicts: src/main/java/com/rabbitmq/stream/impl/StreamConsumer.java
1 parent 835e7ca commit d688cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/rabbitmq/stream/impl/StreamConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ boolean sacActive() {
445445

446446
boolean canTrack() {
447447
// closing is OK e.g. when flushing on closing
448-
return ((this.state() == OPENING || this.state() == OPEN || this.state() == CLOSING)
449-
|| (this.trackingClient == null && this.state() == RECOVERING))
448+
return (this.state() == OPENING || this.state() == OPEN || this.state() == CLOSING)
449+
&& (this.trackingClient != null && this.state() != RECOVERING)
450450
&& this.name != null;
451451
}
452452

0 commit comments

Comments
 (0)