Avoid double-nomination of ICE candidate pairs. (#198)
Nomination is blocked once something is nominated rather than waiting until something is selected.
This commit is contained in:
parent
982e78212b
commit
ca3868ac26
@ -103,10 +103,12 @@ public class DefaultNominator
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
CandidatePair validPair = (CandidatePair) ev.getSource();
|
CandidatePair validPair = (CandidatePair) ev.getSource();
|
||||||
|
Component parentComponent = validPair.getParentComponent();
|
||||||
|
IceMediaStream parentStream = parentComponent.getParentStream();
|
||||||
|
|
||||||
// do not nominate pair if there is currently a selected pair for
|
// do not nominate pair if there is currently a nominated pair for
|
||||||
// the component
|
// the component
|
||||||
if (validPair.getParentComponent().getSelectedPair() != null)
|
if (parentStream.validListContainsNomineeForComponent(parentComponent))
|
||||||
{
|
{
|
||||||
logger.debug(() ->
|
logger.debug(() ->
|
||||||
"Keep-alive for pair: " + validPair.toShortString());
|
"Keep-alive for pair: " + validPair.toShortString());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user