Enable fallback to TCP. (#870)

This commit is contained in:
Raja Subramanian
2022-08-05 10:49:34 +05:30
committed by GitHub
parent 0cffbe69e9
commit 339181a534
+5 -6
View File
@@ -1324,12 +1324,11 @@ func (p *ParticipantImpl) handleConnectionFailed(isPrimary bool) {
} else {
pcTransport.Logger().Infow("short ICE connection", "pair", pair, "duration", duration)
}
/*
p.lock.Lock()
p.iceConfig.PreferSubTcp = true
p.iceConfig.PreferPubTcp = true
p.lock.Unlock()
*/
pcTransport.Logger().Infow("restricting transport to TCP on both peer connections")
p.lock.Lock()
p.iceConfig.PreferSubTcp = true
p.iceConfig.PreferPubTcp = true
p.lock.Unlock()
}
}