Skip to content

Commit 19b375e

Browse files
mohansonCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6e86382 commit 19b375e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

protocol/etch/engine.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ type Client struct {
181181
Server string
182182
}
183183

184+
// Close releases the underlying QUIC endpoint.
185+
func (c *Client) Close() error {
186+
if c.EpQuic != nil {
187+
return c.EpQuic.Close(context.Background())
188+
}
189+
return nil
190+
}
191+
184192
// Dial connects to the address on the named network.
185193
func (c *Client) Dial(ctx *daze.Context, network string, address string) (io.ReadWriteCloser, error) {
186194
cty, end := context.WithTimeout(context.Background(), daze.Conf.DialerTimeout)

0 commit comments

Comments
 (0)