mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-27 09:27:54 +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();
|
JobManager jobManager = ApplicationDependencies.getJobManager();
|
||||||
|
|
||||||
for (Job job : jobs) {
|
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");
|
throw new IOException("Recipient capability was not retrieved in time");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -260,7 +260,7 @@ public class RetrieveProfileJob extends BaseJob {
|
|||||||
Recipient recipient = pair.first();
|
Recipient recipient = pair.first();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ProfileAndCredential profile = pair.second().get(5, TimeUnit.SECONDS);
|
ProfileAndCredential profile = pair.second().get(10, TimeUnit.SECONDS);
|
||||||
return new Pair<>(recipient, profile);
|
return new Pair<>(recipient, profile);
|
||||||
} catch (InterruptedException | TimeoutException e) {
|
} catch (InterruptedException | TimeoutException e) {
|
||||||
retries.add(recipient.getId());
|
retries.add(recipient.getId());
|
||||||
|
Reference in New Issue
Block a user