From 789a2bd39013a23ff30fcd330ea2c87de0d8c9e2 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Tue, 26 Sep 2023 13:21:08 +0530 Subject: [PATCH] Log ICE candidates when closing the peer connection. (#2105) There are cases that experience the signalling channel timeout and disconnect and there are no logs of what the state of ICE at all. Log ICE candidates when closing transport so that there is some visibility in those cases. n --- pkg/rtc/transport.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/rtc/transport.go b/pkg/rtc/transport.go index 517c90c1f..47338e812 100644 --- a/pkg/rtc/transport.go +++ b/pkg/rtc/transport.go @@ -1443,6 +1443,7 @@ func (t *PCTransport) processEvents() { t.clearSignalStateCheckTimer() t.params.Logger.Debugw("leaving events processor") + t.handleLogICECandidates(nil) } func (t *PCTransport) handleEvent(e *event) error {