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

Zepp OS: Attempt to fix repeating fetch operation getting stuck

This commit is contained in:
José Rebelo 2023-10-09 13:28:57 +01:00
parent 7124d337e1
commit 6c710d594d

View File

@ -81,6 +81,8 @@ public abstract class AbstractRepeatingFetchOperation extends AbstractFetchOpera
LOG.info("{} has finished round {}: {}, got {} bytes in buffer", getName(), fetchCount, success, byteStreamBuffer.size()); LOG.info("{} has finished round {}: {}, got {} bytes in buffer", getName(), fetchCount, success, byteStreamBuffer.size());
if (!success) { if (!success) {
// We need to explicitly ack this, or the next operation will fail fetch will become stuck
sendAck2021(true);
super.handleActivityFetchFinish(false); super.handleActivityFetchFinish(false);
return false; return false;
} }