1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 23:35:40 -05:00

fix done.Close() in defer

This commit is contained in:
Darien Raymond
2018-04-18 23:15:57 +02:00
parent 8e62134bdf
commit a8aab30e6b

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)