LiveLocationSharingViewerService: Nullify listenner when needed.

This commit is contained in:
SBiOSoftWhare
2022-05-04 16:00:43 +02:00
parent 313d77ddf4
commit 36f192347b
@@ -60,6 +60,7 @@ class LiveLocationSharingViewerService: LiveLocationSharingViewerServiceProtocol
func stopListeningLiveLocationUpdates() {
if let listener = beaconInfoSummaryListener {
self.session.aggregations.removeListener(listener)
self.beaconInfoSummaryListener = nil
}
}