1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-27 14:47:59 +01:00

Close Echo when Session Closed

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7034 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo 2007-02-07 04:31:33 +00:00 committed by thiago
parent 8115930299
commit 85387aa360
2 changed files with 10 additions and 1 deletions

View file

@ -1074,7 +1074,7 @@ public abstract class JingleSession extends JingleNegotiator {
public void close() {
destroyMediaNeg();
destroyTransportNeg();
removePacketListener();
removePacketListener();
System.out.println("Negociation Closed");
super.close();
}

View file

@ -142,6 +142,15 @@ public abstract class TransportNegotiator extends JingleNegotiator {
return acceptedLocalCandidate;
}
public void close() {
super.close();
for (TransportCandidate candidate : offeredCandidates)
if (candidate.getCandidateEcho() != null)
candidate.getCandidateEcho().cancel();
}
/**
* Obtain the best common transport candidate obtained in the negotiation.
*