fixed the condition determining if reducing the polling timeout