mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 15:16:52 +08:00
Missed Done when collecting ice stats (#3040)
Missed Done when error in collecting
This commit is contained in:
@@ -343,6 +343,7 @@ func (g *ICEGatherer) collectStats(collector *statsReportCollector) {
|
|||||||
stats, err := toICECandidatePairStats(candidatePairStats)
|
stats, err := toICECandidatePairStats(candidatePairStats)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
g.log.Error(err.Error())
|
g.log.Error(err.Error())
|
||||||
|
collector.Done()
|
||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user