unmap before flushing

This commit is contained in:
Zlatin Balevsky
2019-10-29 13:12:59 +00:00
parent fa9c697bfa
commit a78d8c84ca

View File

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