Broadcasting from Android crashes #1696
This commit is contained in:
parent
b98266feca
commit
898abc6f0b
|
@ -51,7 +51,7 @@ dependencies {
|
||||||
implementation project(':models')
|
implementation project(':models')
|
||||||
implementation libs.annotations
|
implementation libs.annotations
|
||||||
|
|
||||||
def acraVersion = '5.6.1'
|
def acraVersion = '5.7.0'
|
||||||
implementation "ch.acra:acra-http:$acraVersion"
|
implementation "ch.acra:acra-http:$acraVersion"
|
||||||
implementation "ch.acra:acra-mail:$acraVersion"
|
implementation "ch.acra:acra-mail:$acraVersion"
|
||||||
implementation "ch.acra:acra-dialog:$acraVersion"
|
implementation "ch.acra:acra-dialog:$acraVersion"
|
||||||
|
|
|
@ -391,7 +391,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
|
||||||
int crc = in.readInt();
|
int crc = in.readInt();
|
||||||
int fromPacket = IoHelper.getCrc32(packet);
|
int fromPacket = IoHelper.getCrc32(packet);
|
||||||
if (crc != fromPacket)
|
if (crc != fromPacket)
|
||||||
throw new IllegalStateException("CRC mismatch crc=" + Integer.toString(crc, 16) + " vs packet=" + Integer.toString(fromPacket, 16) + " len=" + packet.length + " data: " + IoStream.printHexBinary(packet));
|
throw new IOException("CRC mismatch crc=" + Integer.toString(crc, 16) + " vs packet=" + Integer.toString(fromPacket, 16) + " len=" + packet.length + " data: " + IoStream.printHexBinary(packet));
|
||||||
in.onPacketArrived();
|
in.onPacketArrived();
|
||||||
return new Packet(packet, crc);
|
return new Packet(packet, crc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue