Improve error processing

This commit is contained in:
世界
2022-07-30 09:57:02 +08:00
parent 9b9b5ebb72
commit d3378a575c
8 changed files with 38 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ func (c *Client) openStream() (net.Conn, error) {
if err != nil {
return nil, err
}
return conn, nil
return &wrapStream{conn}, nil
}
func (c *Client) offer() (*yamux.Session, error) {