Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't leave Decoder in invalid state if read fails #14

Merged
merged 1 commit into from Jun 12, 2016

Conversation

bvinc83
Copy link
Contributor

@bvinc83 bvinc83 commented Jun 12, 2016

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.

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.
@bozaro bozaro merged commit 578be4a into bozaro:master Jun 12, 2016
bozaro added a commit that referenced this pull request Jun 12, 2016
@bozaro
Copy link
Owner

bozaro commented Jun 12, 2016

Thanks for you pull request.
It merged and available on cargo now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants