Skip to content

Commit

Permalink
Merge pull request #514 from bonitoo-io/issue_513
Browse files Browse the repository at this point in the history
fix issue #513 : Response body must be closed properly in case of JSON response
  • Loading branch information
majst01 committed Sep 6, 2018
2 parents 24c5542 + 494c924 commit f6879f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/influxdb/impl/InfluxDBImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ public void process(final ResponseBody chunkedBody, final Consumer<QueryResult>
QueryResult queryResult = new QueryResult();
queryResult.setError("DONE");
consumer.accept(queryResult);
} finally {
chunkedBody.close();
}
}
}
Expand Down

0 comments on commit f6879f7

Please sign in to comment.