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()));
}
}