Skip to content

Commit

Permalink
Fix client close
Browse files Browse the repository at this point in the history
  • Loading branch information
buptsb authored Nov 9, 2023
1 parent 1739640 commit 4b5fc8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b5fc8d

Please sign in to comment.