If retries is 0, wait for timeout to elapse at least once.