From f7bec075038d5a446861dcb53b3494188f17885e Mon Sep 17 00:00:00 2001 From: jubb Date: Mon, 5 Jul 2021 10:46:48 +1000 Subject: [PATCH] fix: raise output max buffer size to Job.MAX_BUFFER_SIZE --- .../session/libsession/messaging/jobs/AttachmentUploadJob.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/jobs/AttachmentUploadJob.kt b/libsession/src/main/java/org/session/libsession/messaging/jobs/AttachmentUploadJob.kt index b8e5c9fb7e..9d50e96a98 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/jobs/AttachmentUploadJob.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/jobs/AttachmentUploadJob.kt @@ -140,7 +140,7 @@ class AttachmentUploadJob(val attachmentID: Long, val threadID: String, val mess val kryo = Kryo() kryo.isRegistrationRequired = false val serializedMessage = ByteArray(4096) - val output = Output(serializedMessage) + val output = Output(serializedMessage, Job.MAX_BUFFER_SIZE) kryo.writeClassAndObject(output, message) output.close() return Data.Builder()