mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-12 11:49:40 +02:00
Candidates Added after session Establishment fixed
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7449 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
c3c44e142d
commit
9ea6a38249
4 changed files with 519 additions and 75 deletions
|
@ -1122,6 +1122,7 @@ public abstract class JingleSession extends JingleNegotiator {
|
|||
*/
|
||||
public void terminate() throws XMPPException {
|
||||
if (isClosed()) return;
|
||||
//remo
|
||||
System.out.println("State: " + this.getState());
|
||||
Jingle result = null;
|
||||
Jingle jout = new Jingle(Jingle.Action.SESSIONTERMINATE);
|
||||
|
@ -1138,7 +1139,7 @@ public abstract class JingleSession extends JingleNegotiator {
|
|||
destroyMediaNeg();
|
||||
destroyTransportNeg();
|
||||
removePacketListener();
|
||||
System.out.println("Negociation Closed: " + getConnection().getUser());
|
||||
System.out.println("Negotiation Closed: " + getConnection().getUser() + " " + sid);
|
||||
closed = true;
|
||||
super.close();
|
||||
}
|
||||
|
|
|
@ -231,7 +231,8 @@ public abstract class TransportNegotiator extends JingleNegotiator {
|
|||
public void candidateChecked(TransportCandidate cand,
|
||||
final boolean validCandidate) {
|
||||
if (validCandidate) {
|
||||
addValidRemoteCandidate(offeredCandidate);
|
||||
if (!(getState() instanceof Active))
|
||||
addValidRemoteCandidate(offeredCandidate);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue