1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 02:25:50 +01:00

Garmin: fix spurious protobuf messages

This commit is contained in:
Daniele Gobbetti 2024-05-06 19:46:51 +02:00
parent 2a9a01e40b
commit 709afc5df7

View File

@ -138,6 +138,7 @@ public class ProtocolBufferHandler implements MessageHandler {
if (protobufFragment.totalLength <= (statusMessage.getDataOffset() + maxChunkSize)) { if (protobufFragment.totalLength <= (statusMessage.getDataOffset() + maxChunkSize)) {
chunkedFragmentsMap.remove(protobufFragment); chunkedFragmentsMap.remove(protobufFragment);
return null;
} }
return protobufFragment.getNextChunk(statusMessage); return protobufFragment.getNextChunk(statusMessage);