Skip to content

Commit 66cb081

Browse files
committed
Fix the double flush issue in deprecated class as well
1 parent eeece78 commit 66cb081

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clickhouse-client/src/main/java/com/clickhouse/client/data/ClickHousePipedStream.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ public void close() throws IOException {
103103
Thread.currentThread().interrupt();
104104
throw new IOException("Thread was interrupted when putting EMPTY buffer into queue", e);
105105
} finally {
106-
super.close();
106+
closed = true;
107+
if (postCloseAction != null) {
108+
postCloseAction.run();
109+
}
107110
}
108111
}
109112

0 commit comments

Comments
 (0)