De-bounce the prekey checks.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-04-14 09:26:28 -04:00
parent 0224af7465
commit 406e2d862b
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ static const CGFloat kSignedPreKeyUpdateFailureMaxFailureDuration = 10 * 24 * 60
// We use prekeyQueue to serialize this logic and ensure that only
// one thread is "registering" or "clearing" prekeys at a time.
dispatch_async(TSPreKeyManager.prekeyQueue, ^{
// Mark the prekeys as checked every time we update.
// Mark the prekeys as checked every time we try to register prekeys.
lastPreKeyCheckTimestamp = [NSDate date];
RefreshPreKeysMode modeCopy = mode;