mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
igpsport: Fix endless loop when there is no route files
This commit is contained in:
committed by
José Rebelo
parent
40401492fa
commit
179e04beb1
+1
-4
@@ -194,7 +194,7 @@ public class IGPSportRoutesManager {
|
||||
}
|
||||
waitRoutes -= gbDeviceApps.size();
|
||||
|
||||
if (waitRoutes <= 0) {
|
||||
if (waitRoutes <= 0 || routeList.isEmpty() ) {
|
||||
final GBDeviceEventAppInfo appInfoCmd = new GBDeviceEventAppInfo();
|
||||
appInfoCmd.apps = gbDeviceApps.toArray(new GBDeviceApp[0]);
|
||||
support.evaluateGBDeviceEvent(appInfoCmd);
|
||||
@@ -237,9 +237,6 @@ public class IGPSportRoutesManager {
|
||||
startFile = 0;
|
||||
|
||||
requestFiles();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void activateRoute(final UUID uuid) {
|
||||
|
||||
Reference in New Issue
Block a user