mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 02:58:00 +01:00
Remove ECHO for Candidates after a Session Establishment
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7442 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
30a681a351
commit
c3c44e142d
2 changed files with 9 additions and 4 deletions
|
@ -760,7 +760,7 @@ public abstract class TransportCandidate {
|
|||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
// Do Nothing
|
||||
}
|
||||
|
||||
this.removeListener(listener);
|
||||
|
@ -778,7 +778,7 @@ public abstract class TransportCandidate {
|
|||
|
||||
public class TestResults {
|
||||
|
||||
private boolean result;
|
||||
private boolean result=false;
|
||||
|
||||
public boolean isReachable() {
|
||||
return result;
|
||||
|
|
|
@ -278,8 +278,8 @@ public abstract class TransportNegotiator extends JingleNegotiator {
|
|||
|
||||
// Sleep for some time, waiting for the candidates checks
|
||||
|
||||
int totalTime= (CANDIDATES_ACCEPT_PERIOD + (TransportResolver.CHECK_TIMEOUT * (resolver.getCandidatesList().size()+1)));
|
||||
int tries = (int)Math.ceil(totalTime/1000);
|
||||
int totalTime = (CANDIDATES_ACCEPT_PERIOD + (TransportResolver.CHECK_TIMEOUT * (resolver.getCandidatesList().size() + 1)));
|
||||
int tries = (int) Math.ceil(totalTime / 1000);
|
||||
|
||||
for (int i = 0; i < tries; i++) {
|
||||
try {
|
||||
|
@ -747,6 +747,11 @@ public abstract class TransportNegotiator extends JingleNegotiator {
|
|||
*/
|
||||
public void eventEnter() {
|
||||
System.out.println("Transport stabilished");
|
||||
|
||||
for (TransportCandidate transportCandidate : offeredCandidates)
|
||||
if (transportCandidate.getCandidateEcho() != null)
|
||||
transportCandidate.removeCandidateEcho();
|
||||
|
||||
triggerTransportEstablished(getAcceptedLocalCandidate(),
|
||||
getBestRemoteCandidate());
|
||||
super.eventEnter();
|
||||
|
|
Loading…
Reference in a new issue