Timeout check while waiting for incoming stream was wrong.