unmap before flushing

pull/24/head
Zlatin Balevsky 2019-10-29 13:12:59 +00:00
parent fa9c697bfa
commit a78d8c84ca
1 changed files with 1 additions and 1 deletions

View File

@ -76,11 +76,11 @@ class ContentUploader extends Uploader {
done = true done = true
} finally { } finally {
try {channel?.close() } catch (IOException ignored) {} try {channel?.close() } catch (IOException ignored) {}
endpoint.getOutputStream().flush()
synchronized(this) { synchronized(this) {
DataUtil.tryUnmap(mapped) DataUtil.tryUnmap(mapped)
mapped = null mapped = null
} }
endpoint.getOutputStream().flush()
} }
} }