Skip to content

Commit 5b0e463

Browse files
committed
Fix tracking check
Conflicts: src/main/java/com/rabbitmq/stream/impl/StreamConsumer.java
1 parent 0ac7843 commit 5b0e463

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
@@ -443,8 +443,8 @@ boolean sacActive() {
443443

444444
boolean canTrack() {
445445
// closing is OK e.g. when flushing on closing
446-
return ((this.state() == OPENING || this.state() == OPEN || this.state() == CLOSING)
447-
|| (this.trackingClient == null && this.state() == RECOVERING))
446+
return (this.state() == OPENING || this.state() == OPEN || this.state() == CLOSING)
447+
&& (this.trackingClient != null && this.state() != RECOVERING)
448448
&& this.name != null;
449449
}
450450

0 commit comments

Comments
 (0)