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

Bugfix #3

Merged
merged 2 commits into from
Apr 22, 2014
Merged

Bugfix #3

merged 2 commits into from
Apr 22, 2014

Conversation

Carrotman42
Copy link
Contributor

I opened an issue on this, but I'm at a hackathon so I decided to look into the problem myself.

Sometimes there would be json decode errors for me, and due to the way errors checking was implemented the reading goroutine would just end itself and anything waiting on data would block forever. This change fixes that by returning both data and an error through the channel. Decode errors could just be used to ignore the frame, but also could be used to recover data if needed.

whoisjake added a commit that referenced this pull request Apr 22, 2014
@whoisjake whoisjake merged commit 65b993f into whoisjake:master Apr 22, 2014
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.

2 participants