Adds Keep Alive-s to ServerReflexiveCandidate-s

This commit is contained in:
emcho 2010-02-26 14:30:00 +00:00
parent 68607664e1
commit 991c6b32d0

View File

@ -124,4 +124,26 @@ public class StunCandidateHarvester
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)
{
}
}
}
}
}