Mercurial > hg > monetdb-java
diff src/main/java/org/monetdb/jdbc/MonetConnection.java @ 510:13b48891ac54 onclient
add getStream to DownloadHandle
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Thu, 19 Aug 2021 16:12:52 +0200 (2021-08-19) |
parents | 2ae90050720c |
children | bd860e850fe1 |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java +++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java @@ -3254,17 +3254,13 @@ public class MonetConnection } MonetDownloadHandle handle = new MonetDownloadHandle(server); - try { - downloader.handleDownload(handle, path, true); - if (!handle.hasBeenUsed()) { - String message = String.format("Call to %s.handleDownload for path '%s' sent neither data nor an error message", - downloader.getClass().getCanonicalName(), path); - throw new IOException(message); - } - handle.close(); - } finally { - // + downloader.handleDownload(handle, path, true); + if (!handle.hasBeenUsed()) { + String message = String.format("Call to %s.handleDownload for path '%s' sent neither data nor an error message", + downloader.getClass().getCanonicalName(), path); + throw new IOException(message); } + handle.close(); return handle.getError(); } }