Skip to content

Commit

Permalink
fixes #3514
Browse files Browse the repository at this point in the history
  • Loading branch information
iNPUTmice committed Aug 11, 2019
1 parent 1ff17fc commit 8ac0424
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -841,18 +841,17 @@ private void sendFallbackToIbb() {

private boolean receiveFallbackToIbb(JinglePacket packet) {
Log.d(Config.LOGTAG, "receiving fallack to ibb");
String receivedBlockSize = packet.getJingleContent().ibbTransport()
.getAttribute("block-size");
final String receivedBlockSize = packet.getJingleContent().ibbTransport().getAttribute("block-size");
if (receivedBlockSize != null) {
int bs = Integer.parseInt(receivedBlockSize);
if (bs > this.ibbBlockSize) {
final int bs = Integer.parseInt(receivedBlockSize);
if (bs < this.ibbBlockSize) {
this.ibbBlockSize = bs;
}
}
this.transportId = packet.getJingleContent().getTransportId();
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);
content.setFileOffer(fileOffer, ftVersion);
Expand Down

0 comments on commit 8ac0424

Please sign in to comment.