diff --git a/core/src/main/groovy/com/muwire/core/upload/ContentUploader.groovy b/core/src/main/groovy/com/muwire/core/upload/ContentUploader.groovy index 90bc4f0f..3cb70626 100644 --- a/core/src/main/groovy/com/muwire/core/upload/ContentUploader.groovy +++ b/core/src/main/groovy/com/muwire/core/upload/ContentUploader.groovy @@ -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() } }