synchronously schedule background work, to avoid cancelling race condition

This commit is contained in:
Vincent Breitmoser
2018-07-13 14:52:50 +02:00
parent de3123b2c3
commit 84f20f6646
3 changed files with 21 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ public class KeychainApplication extends Application {
TlsCertificatePinning.addPinnedCertificate("api.keybase.io", getAssets(), "api.keybase.io.CA.cer");
TlsCertificatePinning.addPinnedCertificate("keyserver.ubuntu.com", getAssets(), "DigiCertGlobalRootCA.cer");
KeyserverSyncManager.updateKeyserverSyncSchedule(this, Constants.DEBUG_KEYSERVER_SYNC);
KeyserverSyncManager.updateKeyserverSyncScheduleAsync(this, Constants.DEBUG_KEYSERVER_SYNC);
TemporaryFileProvider.scheduleCleanupImmediately();
}