1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-30 02:02:06 +01:00

Only relay session if the Transport is Relayed

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7031 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo 2007-02-07 04:13:37 +00:00 committed by thiago
parent f9203c0e00
commit 78c6e3438b

View file

@ -53,7 +53,11 @@ public class ICETransportManager extends JingleTransportManager implements Jingl
// Implement a Session Listener to relay candidates after establishment
public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc, JingleSession jingleSession) {
RTPBridge rtpBridge = RTPBridge.relaySession(lc.getConnection(), lc.getSessionId(), lc.getPassword(), rc, lc);
if (lc instanceof TransportCandidate.Ice) {
if (((TransportCandidate.Ice) lc).getType().equals("relay")) {
RTPBridge rtpBridge = RTPBridge.relaySession(lc.getConnection(), lc.getSessionId(), lc.getPassword(), rc, lc);
}
}
}
public void sessionDeclined(String reason, JingleSession jingleSession) {