lostzen / lost

A drop-in replacement for Google Play services location APIs for Android
http://mapzen.github.io/lost/
Other
352 stars 70 forks source link

Fixes ConcurrentModificationException when client is disconnected on connect #163

Closed ecgreb closed 7 years ago

ecgreb commented 7 years ago

Overview

Fixes ConcurrentModificationException when multiple clients exist and one client is disconnected on connect.

Proposed Changes

Iterates a over copy of the connection callbacks set stored in the FusedLocationServiceConnectionManager when the fused location service is either connected or suspended. This prevent a ConcurrentModificationException if callbacks are removed during iteration.

Fixes #162

westnordost commented 7 years ago

nice, thank you :-) Looking forward for the next LOST release, my fingers are itching to remove those workarounds