fix done.Close() in defer

pull/1086/head
Darien Raymond 2018-04-18 23:15:57 +02:00
parent 8e62134bdf
commit a8aab30e6b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 3 additions and 1 deletions

View File

@ -254,7 +254,9 @@ func (m *Client) handleStatusEnd(meta *FrameMetadata, reader *buf.BufferedReader
}
func (m *Client) fetchOutput() {
defer common.Must(m.done.Close())
defer func() {
common.Must(m.done.Close())
}()
reader := buf.NewBufferedReader(m.link.Reader)