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