From f0eb7d29c438f56201aa90abdd10befe1787532a Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Tue, 9 May 2017 02:14:45 +0900 Subject: [PATCH] Fix not to return error event of context in streaming --- cmd/mstdn/cmd_stream.go | 1 - streaming.go | 1 - 2 files changed, 2 deletions(-) diff --git a/cmd/mstdn/cmd_stream.go b/cmd/mstdn/cmd_stream.go index ee07ec1..f2ca59c 100644 --- a/cmd/mstdn/cmd_stream.go +++ b/cmd/mstdn/cmd_stream.go @@ -79,7 +79,6 @@ func cmdStream(c *cli.Context) error { } go func() { <-sc - close(q) cancel() }() diff --git a/streaming.go b/streaming.go index 060c9e7..0d3e559 100644 --- a/streaming.go +++ b/streaming.go @@ -105,7 +105,6 @@ func (c *Client) streaming(ctx context.Context, p string, params url.Values) (ch for { select { case <-ctx.Done(): - q <- &ErrorEvent{ctx.Err()} return default: }