LiveLocationSharingViewerService: Nullify listenner when needed.

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