Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't leave Decoder in invalid state if read fails
If a read fails, such as in the case of non-blocking IO, we don't want to leave the Decoder in an invalid state. Only change the state of the Decoder if a read succeeds, otherwise, allow for calling again.
- Loading branch information