Skip to content

Commit

Permalink
Exit stream on unexpected EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAdam committed Jul 16, 2014
1 parent 2ee1a1c commit 80b258d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func (s *StreamClient) Stream(stream *TwitterAPIURL, formValues *url.Values) {
} else if err.Error() == "EOF" {
s.Errors <- err
return
} else if err.Error() == "unexpected EOF" {
// Auto reconnection is currently left up to the client.
s.Errors <- err
return
}
s.Errors <- err
continue
Expand Down

0 comments on commit 80b258d

Please sign in to comment.