mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 19:37:32 +00:00
Increase profile timeouts.
This commit is contained in:

committed by
Alan Evans

parent
29e66e1d47
commit
2dd95c6ef6
@@ -44,7 +44,7 @@ public final class GroupsV2CapabilityChecker {
|
||||
JobManager jobManager = ApplicationDependencies.getJobManager();
|
||||
|
||||
for (Job job : jobs) {
|
||||
if (!jobManager.runSynchronously(job, TimeUnit.SECONDS.toMillis(5)).isPresent()) {
|
||||
if (!jobManager.runSynchronously(job, TimeUnit.SECONDS.toMillis(10)).isPresent()) {
|
||||
throw new IOException("Recipient capability was not retrieved in time");
|
||||
}
|
||||
}
|
||||
|
@@ -260,7 +260,7 @@ public class RetrieveProfileJob extends BaseJob {
|
||||
Recipient recipient = pair.first();
|
||||
|
||||
try {
|
||||
ProfileAndCredential profile = pair.second().get(5, TimeUnit.SECONDS);
|
||||
ProfileAndCredential profile = pair.second().get(10, TimeUnit.SECONDS);
|
||||
return new Pair<>(recipient, profile);
|
||||
} catch (InterruptedException | TimeoutException e) {
|
||||
retries.add(recipient.getId());
|
||||
|
Reference in New Issue
Block a user