Fixed a bug in which retryAfter == 0 would result in repeated retries