Skip to content

Commit f8823b8

Browse files
committed
Fix tracking check
1 parent b96a87d commit f8823b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,8 @@ boolean sacActive() {
444444
}
445445

446446
boolean canTrack() {
447-
// FIXME check the condition to be able to track
448-
return ((this.state() == OPENING || this.state() == OPEN)
449-
|| (this.trackingClient == null && this.state() == RECOVERING))
447+
return (this.state() == OPENING || this.state() == OPEN)
448+
&& (this.trackingClient != null && this.state() != RECOVERING)
450449
&& this.name != null;
451450
}
452451

0 commit comments

Comments
 (0)