LiveLocationSharingViewerService: Nullify listenner when needed.

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