this is a bug in the original and copied here. Can you fix both?

This is a local variable, so it will never block. It should be a member variable I think.