diff --git a/passbook/core/policies.py b/passbook/core/policies.py index 301c7b057..e495f018e 100644 --- a/passbook/core/policies.py +++ b/passbook/core/policies.py @@ -91,12 +91,12 @@ class PolicyEngine: kwargs=kwargs, time_limit=policy.timeout)) self.__get_timeout += policy.timeout - self.__get_timeout += 3 - self.__get_timeout = (self.__get_timeout / len(self.policies)) * 1.5 LOGGER.debug("Set total policy timeout to %r", self.__get_timeout) # If all policies are cached, we have an empty list here. if signatures: self.__group = group(signatures)() + self.__get_timeout += 3 + self.__get_timeout = (self.__get_timeout / len(self.policies)) * 1.5 self.__cached = cached_policies return self