From 4b5fc8d3843b8d9cda035176536394aecd71901c Mon Sep 17 00:00:00 2001 From: buptsb Date: Thu, 9 Nov 2023 11:42:28 +0800 Subject: [PATCH] Fix client close --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 7bba001..c574d95 100644 --- a/client.go +++ b/client.go @@ -117,6 +117,7 @@ func (c *Client) offer(ctx context.Context) (abstractSession, error) { var sessions []abstractSession for element := c.connections.Front(); element != nil; { if element.Value.IsClosed() { + element.Value.Close() nextElement := element.Next() c.connections.Remove(element) element = nextElement