From a78d8c84ca803e7ce540a31bdc119e00afe5d345 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 29 Oct 2019 13:12:59 +0000 Subject: [PATCH] unmap before flushing --- .../main/groovy/com/muwire/core/upload/ContentUploader.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } }