From 9566120d662340023b88f73390f757e84eb42e33 Mon Sep 17 00:00:00 2001 From: jubb Date: Thu, 1 Jul 2021 13:45:14 +1000 Subject: [PATCH] fix: revert max failure count on upload and send jobs --- .../session/libsession/messaging/jobs/AttachmentUploadJob.kt | 2 +- .../org/session/libsession/messaging/jobs/MessageSendJob.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 11d9298428..e4cc76974f 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 @@ -33,7 +33,7 @@ class AttachmentUploadJob(val attachmentID: Long, val threadID: String, val mess } // Settings - override val maxFailureCount: Int = 2 + override val maxFailureCount: Int = 20 companion object { val TAG = AttachmentUploadJob::class.simpleName diff --git a/libsession/src/main/java/org/session/libsession/messaging/jobs/MessageSendJob.kt b/libsession/src/main/java/org/session/libsession/messaging/jobs/MessageSendJob.kt index 7d25debe40..274f11c3e3 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/jobs/MessageSendJob.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/jobs/MessageSendJob.kt @@ -22,7 +22,7 @@ class MessageSendJob(val message: Message, val destination: Destination) : Job { override var id: String? = null override var failureCount: Int = 0 - override val maxFailureCount: Int = 2 + override val maxFailureCount: Int = 10 companion object { val TAG = MessageSendJob::class.simpleName