jingle: send canditate error before fallback
This commit is contained in:
parent
73d66fd703
commit
61604dedea
|
@ -122,7 +122,7 @@ public final class Config {
|
|||
|
||||
public static final int EXPIRY_INTERVAL = 30 * 60 * 1000; // 30 minutes
|
||||
|
||||
public static final String ENABLED_CIPHERS[] = {
|
||||
public static final String[] ENABLED_CIPHERS = {
|
||||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
||||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA384",
|
||||
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA256",
|
||||
|
|
|
@ -1003,16 +1003,17 @@ public class JingleConnection implements Transferable {
|
|||
}
|
||||
|
||||
private void sendCandidateError() {
|
||||
Log.d(Config.LOGTAG,"sending canditate error");
|
||||
JinglePacket packet = bootstrapPacket("transport-info");
|
||||
Content content = new Content(this.contentCreator, this.contentName);
|
||||
content.setTransportId(this.transportId);
|
||||
content.socks5transport().addChild("candidate-error");
|
||||
packet.setContent(content);
|
||||
this.sentCandidate = true;
|
||||
this.sendJinglePacket(packet);
|
||||
if (receivedCandidate && mJingleStatus == JINGLE_STATUS_ACCEPTED) {
|
||||
connect();
|
||||
}
|
||||
this.sendJinglePacket(packet);
|
||||
}
|
||||
|
||||
public int getJingleStatus() {
|
||||
|
|
Loading…
Reference in a new issue