Adds Keep Alive-s to ServerReflexiveCandidate-s
This commit is contained in:
parent
68607664e1
commit
991c6b32d0
@ -124,4 +124,26 @@ public class StunCandidateHarvester
|
|||||||
exception);
|
exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class KeepAliveThread extends Thread
|
||||||
|
{
|
||||||
|
public KeepAliveThread()
|
||||||
|
{
|
||||||
|
super("Stun Harvester Keep Alive Thread");
|
||||||
|
setDaemon(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
synchronized(allocatedCandidates)
|
||||||
|
{
|
||||||
|
allocatedCandidates.wait(keepAliveInterval);
|
||||||
|
|
||||||
|
for(ServerReflexiveCandidate srflxCand : allocatedCandidates)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user