fix lint warnings

pull/1086/head
Darien Raymond 2018-04-18 22:35:44 +02:00
parent 0c66016d5f
commit be1c175de6
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ func NewClient(p proxy.Outbound, dialer proxy.Dialer, m *ClientManager) (*Client
if err := p.Process(ctx, &core.Link{Reader: uplinkReader, Writer: downlinkWriter}, dialer); err != nil {
errors.New("failed to handler mux client connection").Base(err).WriteToLog()
}
c.done.Close()
common.Must(c.done.Close())
cancel()
}()
@ -253,7 +253,7 @@ func (m *Client) handleStatusEnd(meta *FrameMetadata, reader *buf.BufferedReader
}
func (m *Client) fetchOutput() {
defer m.done.Close()
defer common.Must(m.done.Close())
reader := buf.NewBufferedReader(m.link.Reader)