Skip to content

Commit 47db56b

Browse files
committed
The delete method of a storage file was leaving the http connection taken and this left no connections to the pool over time
Issue: 205918 (cherry picked from commit 027b508)
1 parent 750f90f commit 47db56b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/src/main/java/com/genexus/util/GXFile.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ public void delete() {
228228
lineIterator.close();
229229
lineIterator = null;
230230
}
231-
if (this.getStream() != null) {
232-
this.getStream().close();
231+
InputStream is = this.getStream();
232+
if (is != null) {
233+
is.close();
233234
}
234235
} catch (Exception ignored) {}
235236

0 commit comments

Comments
 (0)