1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +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

@ -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.
* *