The done() function on the encoder isn't idempotent. Calling done() on the encoder any time after the first should do nothing or return an error.
The done() function on the encoder isn't idempotent. Calling done() on the encoder any time after the first should do nothing or return an error.