mirror of https://github.com/zlatinb/muwire
unmap before flushing
parent
fa9c697bfa
commit
a78d8c84ca
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue