mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Bangle.js:actTrk: no timeout during data-parsing
This commit is contained in:
parent
8ab77f148f
commit
49bd363d0f
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user