1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-17 00:44:50 +02: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() { public void close() {
destroyMediaNeg(); destroyMediaNeg();
destroyTransportNeg(); destroyTransportNeg();
removePacketListener(); removePacketListener();
System.out.println("Negociation Closed"); System.out.println("Negociation Closed");
super.close(); super.close();
} }

View file

@ -142,6 +142,15 @@ public abstract class TransportNegotiator extends JingleNegotiator {
return acceptedLocalCandidate; 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. * Obtain the best common transport candidate obtained in the negotiation.
* *