From 273693e46d8b2945f5e3020f35c960728b22b1ed Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Mon, 17 Jan 2022 13:42:18 -0600 Subject: Temporary fix: catch exceptions when retrieving positions --- .../kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt | 3 +++ 1 file changed, 3 insertions(+) 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) } -- cgit v1.2.3