kopia lustrzana https://github.com/ryukoposting/Signal-Android
Increase profile timeouts.
rodzic
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());
|
||||||
|
|
Ładowanie…
Reference in New Issue