From 20b3c287ac2fc7d8a87c8bb7651e5cf65936bcb2 Mon Sep 17 00:00:00 2001 From: emcho Date: Fri, 5 Mar 2010 13:06:16 +0000 Subject: [PATCH] Adds basic support for freeing candidates, components and streams. --- test/test/Ice.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test/Ice.java b/test/test/Ice.java index d8d0c5b..5c43742 100644 --- a/test/test/Ice.java +++ b/test/test/Ice.java @@ -68,7 +68,7 @@ public class Ice transferRemoteCandidates(localStream, remoteStream); else { - //localStream.free(); + localAgent.removeStream(localStream); } } } @@ -96,7 +96,7 @@ public class Ice transferRemoteCandidates(localComponent, remoteComponent); else { - //localComponent.free(); + localStream.removeComponent(localComponent); } } } @@ -104,6 +104,7 @@ public class Ice /** * Adds to localComponent a list of remote candidates that are * actually the local candidates from remoteComponent. + * * @param localComponent the Component where that we should be * adding remoteCandidates to. * @param remoteComponent the source of remote candidates. @@ -118,7 +119,9 @@ public class Ice localComponent.addRemoteCandidate(new RemoteCandidate( rCand.getTransportAddress(), localComponent, - rCand.getType())); + rCand.getType(), + rCand.getFoundation(), + rCand.getPriority())); } }