IOSAD-172 Use configured timeout, not the default IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Fri, 26 Jun 2020 16:54:34 +0200
branchIOSAD-172
changeset 14795f44fbef4658
parent 1478 17e48ad64829
child 1480 b998c63a4cb6
IOSAD-172 Use configured timeout, not the default
pEpObjCAdapter/PEPPassphraseCache.m
     1.1 --- a/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     1.3 @@ -92,7 +92,7 @@
     1.4  - (void)removeStaleEntries
     1.5  {
     1.6      NSDate *now = [NSDate date];
     1.7 -    NSDate *minimum = [now dateByAddingTimeInterval:-s_defaultTimeoutInSeconds];
     1.8 +    NSDate *minimum = [now dateByAddingTimeInterval:-self.timeout];
     1.9      NSTimeInterval minimumTimeInterval = [minimum timeIntervalSinceReferenceDate];
    1.10      NSMutableArray *resultingPassphrases = [NSMutableArray
    1.11                                              arrayWithCapacity:s_maxNumberOfPassphrases];