1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-13 08:30:39 +02:00

Bangle.js:actTrk: no timeout during data-parsing

This commit is contained in:
Ganblejs 2024-03-05 20:14:55 +01:00 committed by José Rebelo
parent 8ab77f148f
commit 49bd363d0f

View File

@ -246,6 +246,7 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
}
private static void parseFetchedRecorderCSV(File dir, String filename, String log, GBDevice device, Context context) {
stopTimeoutTask(); // Parsing can take a while if there are many data. Restart at end of parsing.
File inputFile = new File(dir, filename);
try { // FIXME: There is maybe code inside this try-statement that should be outside of it.
@ -724,6 +725,8 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
} catch (JSONException e) {
throw new RuntimeException(e);
}
stopAndRestartTimeout(device,context);
}