tee: Lock mutex before reading the removed flag of the pads
Otherwise we're not guaranteed to read the very latest value that another thread might've written in there when the pad was released, and could instead work with an old value.
Please register or sign in to comment