This conditional is unnecessary as it will always be true (unless for some odd reason you set your timeout to be shorter than your timeDiff. Hint: don't do that).