Make sure to reset timeouts before calling select again.