parent
e9a85e285f
commit
4282916668
1 changed files with 1 additions and 0 deletions
|
|
@ -389,6 +389,7 @@ func (c *Client) Connect(ctx context.Context, t Transport, opts *ClientSessionOp
|
|||
return nil, err
|
||||
}
|
||||
if !slices.Contains(supportedProtocolVersions, res.ProtocolVersion) {
|
||||
_ = cs.Close()
|
||||
return nil, unsupportedProtocolVersionError{res.ProtocolVersion}
|
||||
}
|
||||
cs.state.InitializeResult = res
|
||||
|
|
|
|||
Loading…
Reference in a new issue