Add checks for participant and sub-components close. (#4100)

* Add checks for participant and sub-components close.

Looks like there might be some memory leak with participant sessions not
getting closed properly. Adding checks (to be cleaned up later) to see
if there is a consistent place where things might hang.

* init with right type

* Remove unnecessary goroutine, thank you @milos-lk

* clean up
This commit is contained in:
Raja Subramanian
2025-11-24 18:07:33 +05:30
committed by GitHub
parent ffbabcc772
commit 70f6def39d
5 changed files with 117 additions and 4 deletions
+2 -2
View File
@@ -2041,8 +2041,8 @@ func GetOtherParticipantInfo(
return pInfos
}
func connectionDetailsFields(infos []*types.ICEConnectionInfo) []interface{} {
var fields []interface{}
func connectionDetailsFields(infos []*types.ICEConnectionInfo) []any {
var fields []any
connectionType := types.ICEConnectionTypeUnknown
for _, info := range infos {
candidates := make([]string, 0, len(info.Remote)+len(info.Local))