From 406e2d862b843c8710ad58988ef0c1fc51307d66 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 14 Apr 2017 09:26:28 -0400 Subject: [PATCH] De-bounce the prekey checks. // FREEBIE --- src/Account/TSPreKeyManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Account/TSPreKeyManager.m b/src/Account/TSPreKeyManager.m index 781cf9923..91b4d3862 100644 --- a/src/Account/TSPreKeyManager.m +++ b/src/Account/TSPreKeyManager.m @@ -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;