fixed: Calling WaitForData with a large minimum could cause it to block the max. timemout
fixed: Typo in variable name