Browse Source

fix: close idle connection with whip client

pull/3124/head
Jonathan Martin 2 years ago
parent
commit
66bd2a5e63
  1. 1
      internal/protocols/webrtc/whip_client.go

1
internal/protocols/webrtc/whip_client.go

@ -210,6 +210,7 @@ outer: @@ -210,6 +210,7 @@ outer:
func (c *WHIPClient) Close() error {
err := WHIPDeleteSession(context.Background(), c.HTTPClient, c.URL.String())
c.pc.Close()
c.HTTPClient.CloseIdleConnections()
return err
}

Loading…
Cancel
Save