Skip to content

Commit 5cebcfb

Browse files
authored
Merge pull request #31 from Nailik/patch-1
Fix Channel Overflow
2 parents 8f3ce90 + 921c57e commit 5cebcfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geo/src/androidMain/kotlin/dev/icerock/moko/geo/LocationTracker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ actual class LocationTracker(
3636
it.interval = interval
3737
it.priority = priority
3838
}
39-
private val locationsChannel = Channel<LatLng>(Channel.BUFFERED)
40-
private val extendedLocationsChannel = Channel<ExtendedLocation>(Channel.BUFFERED)
39+
private val locationsChannel = Channel<LatLng>(Channel.CONFLATED)
40+
private val extendedLocationsChannel = Channel<ExtendedLocation>(Channel.CONFLATED)
4141
private val trackerScope = CoroutineScope(Dispatchers.Main)
4242

4343
fun bind(lifecycle: Lifecycle, context: Context, fragmentManager: FragmentManager) {

0 commit comments

Comments
 (0)