fixes #3514
This commit is contained in:
parent
1ff17fc3f0
commit
8ac042418b
|
@ -841,18 +841,17 @@ public class JingleConnection implements Transferable {
|
||||||
|
|
||||||
private boolean receiveFallbackToIbb(JinglePacket packet) {
|
private boolean receiveFallbackToIbb(JinglePacket packet) {
|
||||||
Log.d(Config.LOGTAG, "receiving fallack to ibb");
|
Log.d(Config.LOGTAG, "receiving fallack to ibb");
|
||||||
String receivedBlockSize = packet.getJingleContent().ibbTransport()
|
final String receivedBlockSize = packet.getJingleContent().ibbTransport().getAttribute("block-size");
|
||||||
.getAttribute("block-size");
|
|
||||||
if (receivedBlockSize != null) {
|
if (receivedBlockSize != null) {
|
||||||
int bs = Integer.parseInt(receivedBlockSize);
|
final int bs = Integer.parseInt(receivedBlockSize);
|
||||||
if (bs > this.ibbBlockSize) {
|
if (bs < this.ibbBlockSize) {
|
||||||
this.ibbBlockSize = bs;
|
this.ibbBlockSize = bs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.transportId = packet.getJingleContent().getTransportId();
|
this.transportId = packet.getJingleContent().getTransportId();
|
||||||
this.transport = new JingleInbandTransport(this, this.transportId, this.ibbBlockSize);
|
this.transport = new JingleInbandTransport(this, this.transportId, this.ibbBlockSize);
|
||||||
|
|
||||||
JinglePacket answer = bootstrapPacket("transport-accept");
|
final JinglePacket answer = bootstrapPacket("transport-accept");
|
||||||
|
|
||||||
final Content content = new Content(contentCreator, contentName);
|
final Content content = new Content(contentCreator, contentName);
|
||||||
content.setFileOffer(fileOffer, ftVersion);
|
content.setFileOffer(fileOffer, ftVersion);
|
||||||
|
|
Loading…
Reference in a new issue