mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 18:57:43 +00:00
Limit upload retries.
This commit is contained in:
parent
6d0858cf35
commit
0421794b41
@ -52,7 +52,7 @@ public class AttachmentUploadJob extends BaseJob implements InjectableType {
|
||||
this(new Job.Parameters.Builder()
|
||||
.addConstraint(NetworkConstraint.KEY)
|
||||
.setLifespan(TimeUnit.DAYS.toMillis(1))
|
||||
.setMaxAttempts(Parameters.UNLIMITED)
|
||||
.setMaxAttempts(3)
|
||||
.build(),
|
||||
attachmentId, destination);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user