mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-26 20:47:58 +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:
parent
8115930299
commit
85387aa360
2 changed files with 10 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ public abstract class JingleSession extends JingleNegotiator {
|
|||
public void close() {
|
||||
destroyMediaNeg();
|
||||
destroyTransportNeg();
|
||||
removePacketListener();
|
||||
removePacketListener();
|
||||
System.out.println("Negociation Closed");
|
||||
super.close();
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue