We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d280c9 commit c0a9d31Copy full SHA for c0a9d31
1 file changed
core/src/main/java/io/grpc/internal/RetriableStream.java
@@ -195,7 +195,10 @@ public void run() {
195
}
196
197
if (retryFuture != null) {
198
- retryFuture.cancel(false);
+ boolean cancelled = retryFuture.cancel(false);
199
+ if (cancelled) {
200
+ inFlightSubStreams.decrementAndGet();
201
+ }
202
203
if (hedgingFuture != null) {
204
hedgingFuture.cancel(false);
0 commit comments