fixed the logic for the timeout (break instead of continue..)