From e4705c337c334b1cd0c0529e91032847c35f4fe3 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(+) (limited to 'shared/src/commonMain/kotlin') 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