Merge pull request #56 from 178inaba/stream_error_handling

Fix not to return error event of context in streaming
pull/57/head v0.0.1
mattn 2017-05-09 09:42:58 +09:00 committed by GitHub
commit f279adb618
2 changed files with 0 additions and 2 deletions

View File

@ -79,7 +79,6 @@ func cmdStream(c *cli.Context) error {
} }
go func() { go func() {
<-sc <-sc
close(q)
cancel() cancel()
}() }()

View File

@ -105,7 +105,6 @@ func (c *Client) streaming(ctx context.Context, p string, params url.Values) (ch
for { for {
select { select {
case <-ctx.Done(): case <-ctx.Done():
q <- &ErrorEvent{ctx.Err()}
return return
default: default:
} }