aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-17 13:42:18 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-17 13:42:18 -0600
commite4705c337c334b1cd0c0529e91032847c35f4fe3 (patch)
treea8010e1b0304aec9389623e12460d10c784f1c2d /shared/src/commonMain/kotlin/mx
parentf582979cb545ffaae01014d2c04672c8cba3f810 (diff)
downloadetbsa-trackermap-mobile-e4705c337c334b1cd0c0529e91032847c35f4fe3.tar.gz
etbsa-trackermap-mobile-e4705c337c334b1cd0c0529e91032847c35f4fe3.tar.bz2
etbsa-trackermap-mobile-e4705c337c334b1cd0c0529e91032847c35f4fe3.zip
Temporary fix: catch exceptions when retrieving positions
Diffstat (limited to 'shared/src/commonMain/kotlin/mx')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
index 21692e7..71ccbbf 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
@@ -61,6 +61,9 @@ class UnitsController(
}
unitsFlow.value = units
}
+ .catch {
+ print("Could not retrieve positions\n")
+ }
.launchIn(scope)
}