Skip to content

Commit 54c6dd0

Browse files
committed
close streaming rpc while closing consumer
1 parent e72d2b7 commit 54c6dd0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/src/main/java/io/hstream/impl/ConsumerImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ public void doStop() {
148148

149149
new Thread(
150150
() -> {
151+
// close the bidistreaming rpc
152+
requestStream.onCompleted();
153+
151154
executorService.shutdown();
152155
logger.info("run shutdown done");
153156
try {

0 commit comments

Comments
 (0)