Fix range check on timeout, as it always evaluated to true
Merge pull request #15 from bozzzzo/fix/range-check

Fix range check on timeout, as it always evaluated to true